PADRead: Don't invert right trigger

This commit is contained in:
Phillip Stephens 2022-03-20 00:48:09 -07:00
parent 9cedce737f
commit 30a5691748
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ u32 PADRead(PAD::Status* status) {
x = SDL_GameControllerGetAxis(controller.m_controller, SDL_CONTROLLER_AXIS_TRIGGERLEFT); x = SDL_GameControllerGetAxis(controller.m_controller, SDL_CONTROLLER_AXIS_TRIGGERLEFT);
y = SDL_GameControllerGetAxis(controller.m_controller, SDL_CONTROLLER_AXIS_TRIGGERRIGHT); y = SDL_GameControllerGetAxis(controller.m_controller, SDL_CONTROLLER_AXIS_TRIGGERRIGHT);
x /= 128; x /= 128;
y = (-(y + 1u)) / 128u; y /= 128;
status[i].x6_triggerL = static_cast<s8>(x); status[i].x6_triggerL = static_cast<s8>(x);
status[i].x7_triggerR = static_cast<s8>(y); status[i].x7_triggerR = static_cast<s8>(y);