commit | 9700f59c4884acf24807b4b62682e62045cabb07 | [log] [tgz] |
---|---|---|
author | Cole Faust <colefaust@google.com> | Thu Aug 03 21:18:17 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 03 21:18:17 2023 +0000 |
tree | d4d4d9f51446c9df8c5fe07bd4ba93d70cc05f2a | |
parent | 99c85b7bc54eafe02bc81adbde0e994cbcb5e894 [diff] | |
parent | 15d0720fc2343382bc636d1bda819d76c8ee12ea [diff] |
Remove references to the pdk product variable am: f7876b22ae am: abd586f7f6 am: 15d0720fc2 Original change: https://android-review.googlesource.com/c/platform/packages/apps/Car/RotaryController/+/2693292 Change-Id: I4ff103b9fc704b8734d5563fec0f556aec0f6832 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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
To long click the controller center button, send down and up action seperately. For example:
adb shell cmd car_service inject-key 23 -a down && sleep 2 && adb shell cmd car_service inject-key 23 -a up