Browse Source
Merge pull request #9489 from MonsterDruide1/tas-stick-deadzone
TAS: Increase accuracy of Stick inputs
pull/15/merge
Narr the Reg
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
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() { |
|
|
|
|