commit | d08ca4b96387d4417fd8eb7c931df14bcb7b9997 | [log] [tgz] |
---|---|---|
author | Heemin Seog <hseog@google.com> | Wed Oct 28 16:56:29 2020 -0700 |
committer | Heemin Seog <hseog@google.com> | Thu Oct 29 15:44:18 2020 -0700 |
tree | 3fce5a7cdbb5363bc2720ff524c11303395bc70d | |
parent | 64791ec018766181e970d876141e766beef82db5 [diff] |
Fix nudge up to HUNs when in touch mode Bug: 169250935 Test: build, manual Change-Id: I98407b6c4ad6e2e0540176f6bc7f9d43990eea94
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