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
This commit is contained in:
parent
9cfa49c954
commit
0516ed85c8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue