diff options
| author | 2014-03-13 00:40:03 +0000 | |
|---|---|---|
| committer | 2014-03-13 00:40:03 +0000 | |
| commit | f80f60ba2b61df9f9544fcae8d8bdbe5542269fc (patch) | |
| tree | d5046b0b305b80c112706fc3af488f0090637bc7 /libs/input/EventHub.cpp | |
| parent | 306c46884eb3121a981a0d1ed0c5461908c227fc (diff) | |
| parent | d23d916e0fc573ccde8a622aaa42ccfae9d31f82 (diff) | |
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.
Diffstat (limited to 'libs/input/EventHub.cpp')
| -rw-r--r-- | libs/input/EventHub.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/input/EventHub.cpp b/libs/input/EventHub.cpp index c1f41db8de43..fc324f8ce677 100644 --- a/libs/input/EventHub.cpp +++ b/libs/input/EventHub.cpp @@ -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); } |