diff options
| author | 2014-04-01 15:43:43 -0700 | |
|---|---|---|
| committer | 2014-04-01 15:43:43 -0700 | |
| commit | f46b5d466dc423509bfa5352c038b14cac5496e8 (patch) | |
| tree | 48991affc17bbed7039efe797829e809ed190316 /libs/input/EventHub.cpp | |
| parent | d08c864784b5d416805aee502e5294b0188a7bd8 (diff) | |
Misc. buttons aren't gamepad keys.
BUTTON_[1-9] are intended to be misc. buttons so the kernel will
assign them to non-gamepad devices. As such, we shouldn't treat them
as belonging to gamepads at all.
Bug: 13432364
Change-Id: I9495760f2379e44785b9ce1cf018b6db7f6cb0f4
Diffstat (limited to 'libs/input/EventHub.cpp')
| -rw-r--r-- | libs/input/EventHub.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/input/EventHub.cpp b/libs/input/EventHub.cpp index fc324f8ce677..ed63b2db61a2 100644 --- a/libs/input/EventHub.cpp +++ b/libs/input/EventHub.cpp @@ -1059,10 +1059,6 @@ static const int32_t GAMEPAD_KEYCODES[] = { AKEYCODE_BUTTON_L2, AKEYCODE_BUTTON_R2, AKEYCODE_BUTTON_THUMBL, AKEYCODE_BUTTON_THUMBR, AKEYCODE_BUTTON_START, AKEYCODE_BUTTON_SELECT, AKEYCODE_BUTTON_MODE, - AKEYCODE_BUTTON_1, AKEYCODE_BUTTON_2, AKEYCODE_BUTTON_3, AKEYCODE_BUTTON_4, - AKEYCODE_BUTTON_5, AKEYCODE_BUTTON_6, AKEYCODE_BUTTON_7, AKEYCODE_BUTTON_8, - AKEYCODE_BUTTON_9, AKEYCODE_BUTTON_10, AKEYCODE_BUTTON_11, AKEYCODE_BUTTON_12, - AKEYCODE_BUTTON_13, AKEYCODE_BUTTON_14, AKEYCODE_BUTTON_15, AKEYCODE_BUTTON_16, }; status_t EventHub::openDeviceLocked(const char *devicePath) { |