commit | 71229248b93d77ea2402dbf96b54f2a498a4b56d | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Thu Jan 27 08:22:36 2022 -0800 |
committer | Linux Build Service Account <lnxbuild@localhost> | Thu Jan 27 08:22:36 2022 -0800 |
tree | 06797c8b5b9753ff3136cd8e9915522b18c22102 | |
parent | 51c3608392fd9581fc0461e61c9764cc484efc86 [diff] | |
parent | cd1763e627e0a9ac9d8f9e85836c6eba60a7cf33 [diff] |
Merge cd1763e627e0a9ac9d8f9e85836c6eba60a7cf33 on remote branch Change-Id: I87e850bbf6cb25fe4528af37c2406141e2dcb255
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