Skip to content
Snippets Groups Projects
Verified Commit 10ca0012 authored by Josch Morgenstern's avatar Josch Morgenstern
Browse files

[#60] change threshold (deadzone) to 10%

parent 21d1ff1f
No related branches found
No related tags found
1 merge request!65Resolve "Kamera - Steuerung mittels Controller"
Pipeline #25864 passed
...@@ -135,7 +135,7 @@ namespace vkcv::camera { ...@@ -135,7 +135,7 @@ namespace vkcv::camera {
glfwGetGamepadState(gamepadIndex, &gamepadState); glfwGetGamepadState(gamepadIndex, &gamepadState);
float sensitivity = 0.05f; float sensitivity = 0.05f;
double threshold = 0.03; // todo: needs further investigation! double threshold = 0.10f; // todo: needs further investigation!
// handle rotations // handle rotations
double stickRightX = static_cast<double>(gamepadState.axes[GLFW_GAMEPAD_AXIS_RIGHT_X]); double stickRightX = static_cast<double>(gamepadState.axes[GLFW_GAMEPAD_AXIS_RIGHT_X]);
......
...@@ -103,7 +103,7 @@ namespace vkcv::camera { ...@@ -103,7 +103,7 @@ namespace vkcv::camera {
glfwGetGamepadState(gamepadIndex, &gamepadState); glfwGetGamepadState(gamepadIndex, &gamepadState);
float sensitivity = 0.025f; float sensitivity = 0.025f;
double threshold = 0.1; // todo: needs further investigation! double threshold = 0.10f; // todo: needs further investigation!
// handle rotations // handle rotations
double stickRightX = static_cast<double>(gamepadState.axes[GLFW_GAMEPAD_AXIS_RIGHT_X]); double stickRightX = static_cast<double>(gamepadState.axes[GLFW_GAMEPAD_AXIS_RIGHT_X]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment