问题描述
是否有可能在ios越狱中以及通过越狱所涉及的所有元素来模拟特定的屏幕坐标中的触摸事件,方法是按下光纤外部键盘(通过摄像头连接套件或蓝牙通过USB)上的特定键?
Is possible to simulate a touch event in specific screen's coordinates pressing a specific key on a fisical external keyboard (usb via camera connection kit or bluetooth) on ios jailbroken and all the elements that jailbreak involves?
我会用它来用脚踩一个应用程序(振幅)中的一个按钮,我想使用键盘作为脚踏开关.
I would use this to press a button in an app (amplitude) with my foot, i want to use a keyboard as a footswitch.
仅供私人使用.没有Appstore或Cydia.谢谢.
Just for a private use. No Appstore or Cydia.Thanks.
推荐答案
该网站提供了有关如何使用私有API模拟触摸的清晰,最新指南.既然您已经说过,这将不用于分发,那么它应该正是您所要的.
This website has a clear, updated guide on how to use a Private API to simulate a touch. Since you've said this won't be for distribution, it should be exactly what you're looking for.
在越狱的设备上,我相信有BTStack库可以拦截蓝牙键盘事件,该库可以与下面的链接中的代码链接.
On a jailbroken device, I believe there is the BTStack library for intercepting Bluetooth Keyboard events, that could be linked with the code in the link below.
http://www.cocoawithlove.com/2008/10/synthesizing-touch-event-on-iphone.html
这篇关于可以使用iOS越狱中的外部键盘模拟触摸事件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!