mirror of https://github.com/qt/qtgamepad.git
Fix -Wsign-compare warning
Change-Id: I936c06df1c75f03c57b4f34b67c76ca50db64ee0 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
502bdb3930
commit
72be0422f9
|
|
@ -138,7 +138,7 @@ void QXInputThread::dispatch(int idx, XINPUT_GAMEPAD *state)
|
|||
{ XINPUT_GAMEPAD_X, QGamepadManager::ButtonX },
|
||||
{ XINPUT_GAMEPAD_Y, QGamepadManager::ButtonY }
|
||||
};
|
||||
for (int i = 0; i < sizeof(buttonMap) / sizeof(ButtonMap); ++i) {
|
||||
for (uint i = 0; i < sizeof(buttonMap) / sizeof(ButtonMap); ++i) {
|
||||
const unsigned short xb = buttonMap[i].xbutton;
|
||||
unsigned short isDown = state->wButtons & xb;
|
||||
if (isDown != (m_controllers[idx].buttons & xb)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue