diff options
author | Siarhei Vishniakou <svv@google.com> | 2017-06-26 11:24:25 -0700 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2017-10-12 21:09:22 -0700 |
commit | 461faf9d0eef48321e1398da56bba332776e9ae5 (patch) | |
tree | a28315693f2024f99321b64f2e813e913abcab09 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 27358ef48d37596dbcb6f876cf3030dce62db261 (diff) |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions