[PATCH] ANDROID: Fix the HID usage of DPAD input event generation.

2020-10-29 Thread Chris Ye
Generic Desktop DPAD usage is mapped by hid-input, that only the first DPAD usage maps to usage type EV_ABS and code of an axis. If HID descriptor has DPAD UP/DOWN/LEFT/RIGHT HID usages and each of usage size is 1 bit, then only the first one will generate input event, the rest of the HID usages wi

[PATCH] ANDROID: Fix the HID usage of DPAD input event generation.

2020-10-28 Thread Chris Ye
Generic Desktop DPAD usage is mapped by hid-input, that only the first DPAD usage maps to usage type EV_ABS and code of an axis. If HID descriptor has DPAD UP/DOWN/LEFT/RIGHT HID usages and each of usage size is 1 bit, then only the first one will generate input event, the rest of the HID usages wi

[PATCH] ANDROID: Fix the HID usage of DPAD input event generation.

2020-10-28 Thread FirstName LastName
From: Chris Ye Generic Desktop DPAD usage is mapped by hid-input, that only the first DPAD usage maps to usage type EV_ABS and code of an axis. If HID descriptor has DPAD UP/DOWN/LEFT/RIGHT HID usages and each of usage size is 1 bit, then only the first one will generate input event, the rest of