commit | 4a3f96c645397f092927445c2aeb2c00f3f0fad9 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Fri Oct 06 08:59:37 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 06 08:59:37 2023 +0000 |
tree | d4d4d9f51446c9df8c5fe07bd4ba93d70cc05f2a | |
parent | 5b1d4e2a5bf52a9ff924862c60a9919b245fdc90 [diff] | |
parent | b6eb3236e7a9e2c4cd81ed0f3517724f26e5b755 [diff] |
[automerger skipped] Merge Android 14 am: 9305b14e44 -s ours am: b6eb3236e7 -s ours am skip reason: Merged-In I5f106d4354956b948394d4115124add1809d1ad9 with SHA-1 f7876b22ae is already in history Original change: https://android-review.googlesource.com/c/platform/packages/apps/Car/RotaryController/+/2777087 Change-Id: I99fdff73d4b1bef3188328bc78efaa17d514f0fe 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