commit | 15d0720fc2343382bc636d1bda819d76c8ee12ea | [log] [tgz] |
---|---|---|
author | Cole Faust <colefaust@google.com> | Thu Aug 03 20:31:57 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 03 20:31:57 2023 +0000 |
tree | d4d4d9f51446c9df8c5fe07bd4ba93d70cc05f2a | |
parent | ff875324fd0566a31deef2ee58665d526c227bd8 [diff] | |
parent | abd586f7f682e0886c82be6732349f74027fcfc2 [diff] |
Remove references to the pdk product variable am: f7876b22ae am: abd586f7f6 Original change: https://android-review.googlesource.com/c/platform/packages/apps/Car/RotaryController/+/2693292 Change-Id: I5132017f8e5eb26643ac5041ab9ef877f2ec80d7 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