commit | 0c54c090cb5752d3ca2da444583a4ccf45b7292a | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Thu Apr 08 00:08:11 2021 -0700 |
committer | Linux Build Service Account <lnxbuild@localhost> | Thu Apr 08 00:08:11 2021 -0700 |
tree | 10a84fbdd5d10e70f5261aecb139808725a3ef78 | |
parent | 7273bccc13582aa8ec407a9b828be57342786e2a [diff] | |
parent | 3561b92678c4615e7eb237d141f73586dc68c4be [diff] |
Merge 3561b92678c4615e7eb237d141f73586dc68c4be on remote branch Change-Id: I83b064fe28153be9f31ce4f7e18532b4c931056e
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