diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2022-12-25 17:47:50 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-25 17:47:50 -0600 |
| commit | 8baff2fe760578442aa609eb77b13d7b71aa150b (patch) | |
| tree | a5f3c6be02b147e270c884b013e5269e6cfe8dc3 /src/core/hid/emulated_controller.cpp | |
| parent | 1240408f75acce1d3ee9be82e739ee9208b9b6ed (diff) | |
| parent | f33599d41c53312ae7b215467e4d69673efa6f79 (diff) | |
Merge pull request #9489 from MonsterDruide1/tas-stick-deadzone
TAS: Increase accuracy of Stick inputs
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index f238d6ccd7..5587ee097d 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() { |
