Files
frameworks_base/core/java/android/view
Siarhei Vishniakou 461faf9d0e Process joystick MotionEvents correctly.
Joystick MotionEvents, such as AXIS_HAT0Y and AXIS_HAT0X,
are translated into KeyEvents KEYCODE_DPAD_UP,
KEYCODE_DPAD_DOWN, etc for navigating menus. When two or more
AXIS_HAT0Y events are batched into a single event, this would
not be recognized by the SyntheticJoystickHandler as a down/up
event, thus missing the event entirely. This commit updates
SyntheticJoystickHandler to use the entire MotionEvent,
including the HistoricalEvent portions.

Bug: 36069459
Test: Connected Sony DS4 joystick, recorded the event
that reproduces the bug with inputstudio. Replayed the
event after patch, the bug could not be reproduced.

Change-Id: I7c15c3a7c9ac326481214b1f6b553ae39c459bc4
2017-10-12 21:09:22 -07:00
..
2017-06-19 14:06:21 -07:00
2017-09-18 21:21:47 +01:00
2017-10-09 16:10:37 -07:00
2017-10-09 16:10:37 -07:00
2017-05-12 10:40:53 -07:00