summaryrefslogtreecommitdiff
path: root/libs/input/TouchSpotController.cpp
diff options
context:
space:
mode:
author nergi <nergi@google.com> 2024-04-30 18:46:48 +0900
committer nergi <nergi@google.com> 2024-04-30 18:54:25 +0900
commit917fff9d16bcf2eb95edab0683b94e8986333e52 (patch)
tree567e4a98a256c043e8cd43d488b08188159c6873 /libs/input/TouchSpotController.cpp
parent88a6adb484538a91f1d0fc9fd27ac2ad0c9a61b2 (diff)
Adds duration args to allow arbitrary duration of keyevent press
This will be helpful to debug longer duration key press. This has also been one of the requested features asked in stackoverflows (some people tried to seed events directly to evdev as workaround). New commands: keyevent --duration <duration_ms> <keycode> This will be mutually exclusive with --longpress, meaning that only one of them can be passed. This 'duration_ms' will also be applied when combined with other args ('--doubletap', '--delay'). Bug: 335533324 Test: atest InputShellCommandTest Test: adb shell input keyevent --duration 1000 Change-Id: I3a86f5c4b89b435bc984b09ba6f504a59b5e0918
Diffstat (limited to 'libs/input/TouchSpotController.cpp')
0 files changed, 0 insertions, 0 deletions