summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-04-16 02:41:09 +0200
committergerman77 <juangerman-13@hotmail.com>2023-04-16 02:41:09 +0200
commit70a97fb5c7a72c3b55abb24dbc749976bb01937a (patch)
tree931b99e5d946ea44c9450fdf973592c7a3f60c94
parentMerge pull request #10030 from Wollnashorn/botw-amd-fix (diff)
downloadyuzu-70a97fb5c7a72c3b55abb24dbc749976bb01937a.tar
yuzu-70a97fb5c7a72c3b55abb24dbc749976bb01937a.tar.gz
yuzu-70a97fb5c7a72c3b55abb24dbc749976bb01937a.tar.bz2
yuzu-70a97fb5c7a72c3b55abb24dbc749976bb01937a.tar.lz
yuzu-70a97fb5c7a72c3b55abb24dbc749976bb01937a.tar.xz
yuzu-70a97fb5c7a72c3b55abb24dbc749976bb01937a.tar.zst
yuzu-70a97fb5c7a72c3b55abb24dbc749976bb01937a.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() {