summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-09-19 22:46:52 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-09-19 22:46:52 +0000
commitc98777a7ee8caed996e707741911b24b0c0c480f (patch)
tree23ec35176425ea08738ff40c353703f88a8a0e75 /libs/input/PointerController.cpp
parent6ced56d50907178d50ce3c768b15657e5fd910c7 (diff)
Move stylus tail button gesture detection to PhoneWindowManager
Instead of having custom gesture detection logic in SystemUI for the stylus tail button, we add a single key gesture detector in PhoneWindowManager for KEYCODE_STYLUS_BUTTON_TAIL. We then use the KeyGestureEventHandler in SysUI to listen to the two shortcuts for opening notes, which includes the stylus tail button. This will make it easy to add additional behavior to other gestures for the stylus tail button, such as long press and double press. Bug: 293591411 Bug: 358569822 Test: atest KeyGestureEventTests Test: atest NoteTaskInitializerTest Flag: com.android.hardware.input.use_key_gesture_event_handler Change-Id: I753229a2c48bd3e6ac8652de378491f3fc66bfa8
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions