summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2018-08-21 18:30:16 -0700
committerSiarhei Vishniakou <svv@google.com>2018-08-27 15:53:33 -0700
commit0b607447b61e600a319bd2ae85909380dbd3930a (patch)
tree4d73b6e18f0db386096e75a1516d416737486ee2 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentbfb5b8b03e1239ab402791c5d2c0a304797d752b (diff)
Fallback BUTTON_MODE to HOME
Currently, BUTTON_MODE falls back to MENU. It is not clear which functionality relies on that. However, many joysticks currently map their "branded" button, for example, the "XBOX" key on the Xbox joystick, and "PS" key on the playstation joystick, to the BUTTON_MODE. On other joysticks, the same button is mapped to "HOME". So it would make sense to have this button to fall back to HOME in order to make the behaviour consistent. Also, remap the "XBOX" button on the Xbox controller to "BUTTON_MODE". This would give apps the chance to intercept this key and actually use it, instead of limiting it to the system. Bug: 37115804 Bug: 77803694 Test: Made a test app to dump out joystick events in response to dispatchKeyEvent. Then either returned true or false to ensure that the fallback happens. If returning true, the app has handled the event, and HOME is not dispatched. If returning false, the app does not care about the event. Therefore, HOME is generated and the phone goes to home screen (so the app gets closed). Change-Id: I023620551f52d34638303db60f8a4ca37f06d4d8 Merged-In: I023620551f52d34638303db60f8a4ca37f06d4d8
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions