问题
I know how to identifie the DPAD click, but i want perform a DPAD click using the Volume UP and Down buttons. How can i do this? Thanks!
回答1:
If you just want to test your APP against DPAD key events, you can simulate in ADB shell, with following commands:
input keyevent DPAD_LEFT
input keyevent DPAD_RIGHT
input keyevent DPAD_UP
input keyevent DPAD_DOWN
input keyevent DPAD_CENTER
来源:https://stackoverflow.com/questions/28971869/how-to-perform-a-fake-dpad-click-on-android