mirror of https://github.com/qt/qtgamepad.git
Merge remote-tracking branch 'origin/5.8' into 5.9
Change-Id: Ic7edff3a9f06ae205a5944e423d9ecbbfa321896
This commit is contained in:
commit
951b5fb5e3
|
|
@ -78,8 +78,8 @@ public:
|
|||
bool handleGenericMotionEvent(jobject event) override;
|
||||
|
||||
protected:
|
||||
bool start();
|
||||
void stop();
|
||||
bool start() override;
|
||||
void stop() override;
|
||||
|
||||
public:
|
||||
struct Mapping {
|
||||
|
|
|
|||
|
|
@ -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