diff options
author | Michael Wright <michaelwr@google.com> | 2014-04-01 15:43:43 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2014-04-02 15:59:11 -0700 |
commit | 0516ed85c880733e906821a291e95223d9d34878 (patch) | |
tree | 72c77be0c93af370bc6bf138dd0c0e5fec6b1acb | |
parent | 9cfa49c95445b968da3170b4fdb0b942af69569e (diff) | |
download | frameworks_native-0516ed85c880733e906821a291e95223d9d34878.zip frameworks_native-0516ed85c880733e906821a291e95223d9d34878.tar.gz frameworks_native-0516ed85c880733e906821a291e95223d9d34878.tar.bz2 |
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: Ida52ec45dadb53df1a9d36ac3ab212a2d2b56359
-rw-r--r-- | services/inputflinger/EventHub.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/services/inputflinger/EventHub.cpp b/services/inputflinger/EventHub.cpp index b70ea76..ac73c1f 100644 --- a/services/inputflinger/EventHub.cpp +++ b/services/inputflinger/EventHub.cpp @@ -1045,10 +1045,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) { |