summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {
210 tas_stick_params[Settings::NativeAnalog::LStick].Set("axis_y", 1); 210 tas_stick_params[Settings::NativeAnalog::LStick].Set("axis_y", 1);
211 tas_stick_params[Settings::NativeAnalog::RStick].Set("axis_x", 2); 211 tas_stick_params[Settings::NativeAnalog::RStick].Set("axis_x", 2);
212 tas_stick_params[Settings::NativeAnalog::RStick].Set("axis_y", 3); 212 tas_stick_params[Settings::NativeAnalog::RStick].Set("axis_y", 3);
213
214 // set to optimal stick to avoid sanitizing the stick and tweaking the coordinates
215 // making sure they play back in the game as originally written down in the script file
216 tas_stick_params[Settings::NativeAnalog::LStick].Set("deadzone", 0.0f);
217 tas_stick_params[Settings::NativeAnalog::LStick].Set("range", 1.0f);
218 tas_stick_params[Settings::NativeAnalog::RStick].Set("deadzone", 0.0f);
219 tas_stick_params[Settings::NativeAnalog::RStick].Set("range", 1.0f);
213} 220}
214 221
215void EmulatedController::LoadVirtualGamepadParams() { 222void EmulatedController::LoadVirtualGamepadParams() {