如何在Android上执行假DPAD点击? [英] How to perform a fake DPAD click on Android?
本文介绍了如何在Android上执行假DPAD点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何识别DPAD点击,但是我想使用音量调高按钮进行DPAD点击。我该怎么办?谢谢!
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!
推荐答案
如果您只想对DPAD键事件测试您的APP,可以使用以下命令在ADB shell中进行模拟:
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
这篇关于如何在Android上执行假DPAD点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文