commit | 51c3608392fd9581fc0461e61c9764cc484efc86 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Fri Oct 01 12:05:06 2021 -0700 |
committer | Linux Build Service Account <lnxbuild@localhost> | Fri Oct 01 12:05:06 2021 -0700 |
tree | 06797c8b5b9753ff3136cd8e9915522b18c22102 | |
parent | 8b3ff43ae959168ea0fbacadc15cc0bfbb9183f2 [diff] | |
parent | 0770232611f28c95f0e824b9eb64f7ec01644360 [diff] |
Merge 0770232611f28c95f0e824b9eb64f7ec01644360 on remote branch Change-Id: Iac0a7f52f68513321082ec668c2fbdb8c743677c
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