commit | 00957154eb20f1b8c485774362af3f1c80ea5094 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Thu Sep 17 16:04:13 2020 -0700 |
committer | Yabin Huang <yabinh@google.com> | Mon Sep 21 11:59:20 2020 -0700 |
tree | 0da017481bcc2a448c0a02dfa8bf9d5444a8e097 | |
parent | 6131f6d27ef7e4266e4a5c996cb939195dc00aa6 [diff] |
Update nudge handling logic Bug: 155698037 Test: manual Change-Id: I275111ee9be16bb518b20d2e8f791be8de226bd8
make CarRotaryController -j64
To enable, run:
adb shell settings put secure enabled_accessibility_services com.android.car.rotary/com.android.car.rotary.RotaryService
To disable, run:
adb shell settings delete secure enabled_accessibility_services
To rotate the controller counter-clockwise, run:
adb shell cmd car_service inject-rotary
For clockwise, run:
adb shell cmd car_service inject-rotary -c true
To rotate the controller multiple times (100 ms ago and 50 ms ago), run:
adb shell cmd car_service inject-rotary -dt 100 50
To nudge the controller up, run:
adb shell cmd car_service inject-key 280
Use KeyCode 280
for nudge up, 281
for nudge down,282
for nudge left,283
for nudge right.
To click the controller center button, run:
adb shell cmd car_service inject-key 23