1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 03:32:50 +01:00

Merge pull request #270 from mputters/xinput

Inverted XInput Y-axis for sticks
This commit is contained in:
Alexandro Sánchez Bach 2014-05-25 13:01:42 +02:00
commit 5d88ca2287

View File

@ -159,9 +159,9 @@ DWORD XInputPadHandler::ThreadProcedure()
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[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[3].m_value = ConvertAxis(state.Gamepad.sThumbRY);
pad.m_sticks[3].m_value = 255 - ConvertAxis(state.Gamepad.sThumbRY);
break;
}
}