commit | b405c122b5813a72b5d1a5bbf358f3bf8895dc55 | [log] [tgz] |
---|---|---|
author | Eric Arseneau <earseneau@google.com> | Tue Mar 09 17:17:28 2021 -0800 |
committer | Eric Arseneau <earseneau@google.com> | Tue Mar 09 17:17:28 2021 -0800 |
tree | 10a84fbdd5d10e70f5261aecb139808725a3ef78 | |
parent | b908c22c7eddd62c797526fedac8224bffc47b41 [diff] | |
parent | 0b4cd4a6f6631bd67d5a9afb2ac8afb0851630e8 [diff] |
Merge spl-2021-03-05 Change-Id: I3885c6e0325f1a16f4eaaddb42dfa7f531c5a32e
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