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

Commit 444b0c6b authored by Michael Wright's avatar Michael Wright Committed by Android Git Automerger
Browse files

am f80f60ba: am d23d916e: Merge "Controllers must have buttons and a movement...

am f80f60ba: am d23d916e: Merge "Controllers must have buttons and a movement mechanism." into klp-modular-dev

* commit 'f80f60ba':
  Controllers must have buttons and a movement mechanism.
parents bcb2839d f80f60ba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1305,7 +1305,8 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
        device->classes |= INPUT_DEVICE_CLASS_EXTERNAL;
    }

    if (device->classes & (INPUT_DEVICE_CLASS_JOYSTICK | INPUT_DEVICE_CLASS_GAMEPAD)) {
    if (device->classes & (INPUT_DEVICE_CLASS_JOYSTICK | INPUT_DEVICE_CLASS_DPAD)
            && device->classes & INPUT_DEVICE_CLASS_GAMEPAD) {
        device->controllerNumber = getNextControllerNumberLocked(device);
        setLedForController(device);
    }