summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-04-22 08:13:21 +0200
committerGitHub <noreply@github.com>2023-04-22 08:13:21 +0200
commit74d203fbe34bd823bd630633a1d8842ada554298 (patch)
treefd624113e4f32d81210fec64ab63af03d51d3959
parentMerge pull request #10057 from liamwhite/its-not-in-the-timeline (diff)
parentcore: hid: Remove deadzone of virtual controller (diff)
downloadyuzu-74d203fbe34bd823bd630633a1d8842ada554298.tar
yuzu-74d203fbe34bd823bd630633a1d8842ada554298.tar.gz
yuzu-74d203fbe34bd823bd630633a1d8842ada554298.tar.bz2
yuzu-74d203fbe34bd823bd630633a1d8842ada554298.tar.lz
yuzu-74d203fbe34bd823bd630633a1d8842ada554298.tar.xz
yuzu-74d203fbe34bd823bd630633a1d8842ada554298.tar.zst
yuzu-74d203fbe34bd823bd630633a1d8842ada554298.zip
-rw-r--r--src/core/hid/emulated_controller.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp
index a29c9a6f8..a70f8807c 100644
--- a/src/core/hid/emulated_controller.cpp
+++ b/src/core/hid/emulated_controller.cpp
@@ -280,6 +280,10 @@ void EmulatedController::LoadVirtualGamepadParams() {
virtual_stick_params[Settings::NativeAnalog::LStick].Set("axis_y", 1);
virtual_stick_params[Settings::NativeAnalog::RStick].Set("axis_x", 2);
virtual_stick_params[Settings::NativeAnalog::RStick].Set("axis_y", 3);
+ virtual_stick_params[Settings::NativeAnalog::LStick].Set("deadzone", 0.0f);
+ virtual_stick_params[Settings::NativeAnalog::LStick].Set("range", 1.0f);
+ virtual_stick_params[Settings::NativeAnalog::RStick].Set("deadzone", 0.0f);
+ virtual_stick_params[Settings::NativeAnalog::RStick].Set("range", 1.0f);
}
void EmulatedController::ReloadInput() {