mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 00:42:48 +00:00
Fix merge
This commit is contained in:
parent
727c8261e2
commit
926d77072e
@ -464,7 +464,7 @@ void ControllerOutput::AddUpdate(InputEvent event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (axis != SDL_GAMEPAD_AXIS_INVALID) {
|
} else if (axis != SDL_GAMEPAD_AXIS_INVALID) {
|
||||||
auto ApplyDeadzone = [](s16* value, std::pair<int, int> deadzone) {
|
auto ApplyDeadzone = [](s8* value, std::pair<int, int> deadzone) {
|
||||||
if (std::abs(*value) <= deadzone.first || deadzone.first == deadzone.second) {
|
if (std::abs(*value) <= deadzone.first || deadzone.first == deadzone.second) {
|
||||||
*value = 0;
|
*value = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user