diff options
author | bunnei <bunneidev@gmail.com> | 2023-04-22 08:13:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-22 08:13:21 +0200 |
commit | 74d203fbe34bd823bd630633a1d8842ada554298 (patch) | |
tree | fd624113e4f32d81210fec64ab63af03d51d3959 /src | |
parent | Merge pull request #10057 from liamwhite/its-not-in-the-timeline (diff) | |
parent | core: hid: Remove deadzone of virtual controller (diff) | |
download | yuzu-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 |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hid/emulated_controller.cpp | 4 |
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() { |