Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7cd560a authored by Kenny Root's avatar Kenny Root Committed by Android Git Automerger
Browse files

am 1d79a9d9: Use correct size of GAMEPAD_KEYCODES

Merge commit '1d79a9d9' into gingerbread-plus-aosp

* commit '1d79a9d9':
  Use correct size of GAMEPAD_KEYCODES
parents 044fcd64 1d79a9d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -818,7 +818,7 @@ int EventHub::openDevice(const char *deviceName) {
        }
        
        // See if this device has a gamepad.
        for (size_t i = 0; i < sizeof(GAMEPAD_KEYCODES); i++) {
        for (size_t i = 0; i < sizeof(GAMEPAD_KEYCODES)/sizeof(GAMEPAD_KEYCODES[0]); i++) {
            if (hasKeycodeLocked(device, GAMEPAD_KEYCODES[i])) {
                device->classes |= INPUT_DEVICE_CLASS_GAMEPAD;
                break;