summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-12-26 00:47:50 +0100
committerGitHub <noreply@github.com>2022-12-26 00:47:50 +0100
commitac00ead7d40142d6113c57cde365a55894a0d270 (patch)
treea5f3c6be02b147e270c884b013e5269e6cfe8dc3 /src/core
parentMerge pull request #9500 from liamwhite/reentrant-shutdown (diff)
parentTAS: Increase accuracy of Stick inputs (diff)
downloadyuzu-ac00ead7d40142d6113c57cde365a55894a0d270.tar
yuzu-ac00ead7d40142d6113c57cde365a55894a0d270.tar.gz
yuzu-ac00ead7d40142d6113c57cde365a55894a0d270.tar.bz2
yuzu-ac00ead7d40142d6113c57cde365a55894a0d270.tar.lz
yuzu-ac00ead7d40142d6113c57cde365a55894a0d270.tar.xz
yuzu-ac00ead7d40142d6113c57cde365a55894a0d270.tar.zst
yuzu-ac00ead7d40142d6113c57cde365a55894a0d270.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hid/emulated_controller.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp
index f238d6ccd..5587ee097 100644
--- a/src/core/hid/emulated_controller.cpp
+++ b/src/core/hid/emulated_controller.cpp
@@ -210,6 +210,13 @@ void EmulatedController::LoadTASParams() {
tas_stick_params[Settings::NativeAnalog::LStick].Set("axis_y", 1);
tas_stick_params[Settings::NativeAnalog::RStick].Set("axis_x", 2);
tas_stick_params[Settings::NativeAnalog::RStick].Set("axis_y", 3);
+
+ // set to optimal stick to avoid sanitizing the stick and tweaking the coordinates
+ // making sure they play back in the game as originally written down in the script file
+ tas_stick_params[Settings::NativeAnalog::LStick].Set("deadzone", 0.0f);
+ tas_stick_params[Settings::NativeAnalog::LStick].Set("range", 1.0f);
+ tas_stick_params[Settings::NativeAnalog::RStick].Set("deadzone", 0.0f);
+ tas_stick_params[Settings::NativeAnalog::RStick].Set("range", 1.0f);
}
void EmulatedController::LoadVirtualGamepadParams() {