Browse Source
Merge pull request #10060 from german77/no_dead
core: hid: Remove deadzone of virtual controller
pull/15/merge
bunnei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
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() { |
|
|
|
|