Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何识别 DPAD 点击,但我想使用音量增大和减小按钮执行 DPAD 点击。我怎样才能做到这一点?谢谢!
如果您只是想针对 DPAD 关键事件测试您的 APP,您可以在 ADB shell 中进行模拟,使用以下命令:
input keyevent DPAD_LEFT input keyevent DPAD_RIGHT input keyevent DPAD_UP input keyevent DPAD_DOWN input keyevent DPAD_CENTER