commit | 05a38b39945c57430103c33d11b17a1662d67d87 | [log] [tgz] |
---|---|---|
author | Yimin Li <ymli@google.com> | Tue Apr 26 11:30:52 2022 -0700 |
committer | Yimin Li <ymli@google.com> | Tue Apr 26 11:30:52 2022 -0700 |
tree | b037f040023dca3f7f40ffa2a452db8b9439d58e | |
parent | 6c3f5d0bad5f8e5f8d138fa25fb005a9d16ddd3e [diff] | |
parent | 50b802f464a2d63dc0b085535891bb8c24303489 [diff] |
Merge commit '50b802f464a2d63dc0b085535891bb8c24303489' of sso://googleplex-android/platform/packages/apps/Car/RotaryController into HEAD Change-Id: I8dcb3efdb49dc3b2f24162d2dc4b24ab24d9557f
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