am d23d916e: Merge "Controllers must have buttons and a movement mechanism." into klp-modular-dev
* commit 'd23d916e0fc573ccde8a622aaa42ccfae9d31f82': Controllers must have buttons and a movement mechanism.
This commit is contained in:
@@ -1305,7 +1305,8 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
|
|||||||
device->classes |= INPUT_DEVICE_CLASS_EXTERNAL;
|
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);
|
device->controllerNumber = getNextControllerNumberLocked(device);
|
||||||
setLedForController(device);
|
setLedForController(device);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user