mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Inverted XInput Y-axis for sticks
This commit is contained in:
parent
03914d60d3
commit
6780a2f0bf
@ -159,9 +159,9 @@ DWORD XInputPadHandler::ThreadProcedure()
|
|||||||
pad.m_buttons[XINPUT_GAMEPAD_BUTTONS + 1].m_value = state.Gamepad.bRightTrigger;
|
pad.m_buttons[XINPUT_GAMEPAD_BUTTONS + 1].m_value = state.Gamepad.bRightTrigger;
|
||||||
|
|
||||||
pad.m_sticks[0].m_value = ConvertAxis(state.Gamepad.sThumbLX);
|
pad.m_sticks[0].m_value = ConvertAxis(state.Gamepad.sThumbLX);
|
||||||
pad.m_sticks[1].m_value = ConvertAxis(state.Gamepad.sThumbLY);
|
pad.m_sticks[1].m_value = 255 - ConvertAxis(state.Gamepad.sThumbLY);
|
||||||
pad.m_sticks[2].m_value = ConvertAxis(state.Gamepad.sThumbRX);
|
pad.m_sticks[2].m_value = ConvertAxis(state.Gamepad.sThumbRX);
|
||||||
pad.m_sticks[3].m_value = ConvertAxis(state.Gamepad.sThumbRY);
|
pad.m_sticks[3].m_value = 255 - ConvertAxis(state.Gamepad.sThumbRY);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user