mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 12:18:36 +02:00
Remove unused Sixense preference and associated methods
This commit is contained in:
parent
361bc1ce03
commit
31714675c3
5 changed files with 2 additions and 31 deletions
|
@ -17,7 +17,7 @@ PreferencesDialog {
|
||||||
id: root
|
id: root
|
||||||
objectName: "GeneralPreferencesDialog"
|
objectName: "GeneralPreferencesDialog"
|
||||||
title: "General Settings"
|
title: "General Settings"
|
||||||
showCategories: ["UI", "Snapshots", "Scripts", "Privacy", "Octree", "HMD", "SDL2 Joystick", "Sixense Controllers", "Perception Neuron", "Kinect"]
|
showCategories: ["UI", "Snapshots", "Scripts", "Privacy", "Octree", "HMD", "SDL2 Joystick", "Perception Neuron", "Kinect"]
|
||||||
property var settings: Settings {
|
property var settings: Settings {
|
||||||
category: root.objectName
|
category: root.objectName
|
||||||
property alias x: root.x
|
property alias x: root.x
|
||||||
|
|
|
@ -32,6 +32,6 @@ StackView {
|
||||||
TabletPreferencesDialog {
|
TabletPreferencesDialog {
|
||||||
id: root
|
id: root
|
||||||
objectName: "TabletGeneralPreferences"
|
objectName: "TabletGeneralPreferences"
|
||||||
showCategories: ["UI", "Snapshots", "Scripts", "Privacy", "Octree", "HMD", "SDL2 Joystick", "Sixense Controllers", "Perception Neuron", "Kinect", "Vive Pucks Configuration"]
|
showCategories: ["UI", "Snapshots", "Scripts", "Privacy", "Octree", "HMD", "SDL2 Joystick", "Perception Neuron", "Kinect", "Vive Pucks Configuration"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -297,17 +297,6 @@ void setupPreferences() {
|
||||||
preferences->addPreference(preference);
|
preferences->addPreference(preference);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
auto getter = []()->float { return controller::InputDevice::getReticleMoveSpeed(); };
|
|
||||||
auto setter = [](float value) { controller::InputDevice::setReticleMoveSpeed(value); };
|
|
||||||
auto preference = new SpinnerPreference("Sixense Controllers", "Reticle movement speed", getter, setter);
|
|
||||||
preference->setMin(0);
|
|
||||||
preference->setMax(100);
|
|
||||||
preference->setStep(1);
|
|
||||||
preferences->addPreference(preference);
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
static const QString RENDER("Graphics");
|
static const QString RENDER("Graphics");
|
||||||
auto renderConfig = qApp->getRenderEngine()->getConfiguration();
|
auto renderConfig = qApp->getRenderEngine()->getConfiguration();
|
||||||
|
|
|
@ -15,20 +15,6 @@
|
||||||
|
|
||||||
namespace controller {
|
namespace controller {
|
||||||
|
|
||||||
const float DEFAULT_HAND_RETICLE_MOVE_SPEED = 37.5f;
|
|
||||||
float InputDevice::_reticleMoveSpeed = DEFAULT_HAND_RETICLE_MOVE_SPEED;
|
|
||||||
|
|
||||||
//Constants for getCursorPixelRangeMultiplier()
|
|
||||||
const float MIN_PIXEL_RANGE_MULT = 0.4f;
|
|
||||||
const float MAX_PIXEL_RANGE_MULT = 2.0f;
|
|
||||||
const float RANGE_MULT = (MAX_PIXEL_RANGE_MULT - MIN_PIXEL_RANGE_MULT) * 0.01f;
|
|
||||||
|
|
||||||
//Returns a multiplier to be applied to the cursor range for the controllers
|
|
||||||
float InputDevice::getCursorPixelRangeMult() {
|
|
||||||
//scales (0,100) to (MINIMUM_PIXEL_RANGE_MULT, MAXIMUM_PIXEL_RANGE_MULT)
|
|
||||||
return InputDevice::_reticleMoveSpeed * RANGE_MULT + MIN_PIXEL_RANGE_MULT;
|
|
||||||
}
|
|
||||||
|
|
||||||
float InputDevice::getButton(int channel) const {
|
float InputDevice::getButton(int channel) const {
|
||||||
if (!_buttonPressedMap.empty()) {
|
if (!_buttonPressedMap.empty()) {
|
||||||
if (_buttonPressedMap.find(channel) != _buttonPressedMap.end()) {
|
if (_buttonPressedMap.find(channel) != _buttonPressedMap.end()) {
|
||||||
|
|
|
@ -73,10 +73,6 @@ public:
|
||||||
int getDeviceID() { return _deviceID; }
|
int getDeviceID() { return _deviceID; }
|
||||||
void setDeviceID(int deviceID) { _deviceID = deviceID; }
|
void setDeviceID(int deviceID) { _deviceID = deviceID; }
|
||||||
|
|
||||||
static float getCursorPixelRangeMult();
|
|
||||||
static float getReticleMoveSpeed() { return _reticleMoveSpeed; }
|
|
||||||
static void setReticleMoveSpeed(float reticleMoveSpeed) { _reticleMoveSpeed = reticleMoveSpeed; }
|
|
||||||
|
|
||||||
Input makeInput(StandardButtonChannel button) const;
|
Input makeInput(StandardButtonChannel button) const;
|
||||||
Input makeInput(StandardAxisChannel axis) const;
|
Input makeInput(StandardAxisChannel axis) const;
|
||||||
Input makeInput(StandardPoseChannel pose) const;
|
Input makeInput(StandardPoseChannel pose) const;
|
||||||
|
|
Loading…
Reference in a new issue