gpt4 book ai didi

iphone - 如何通过 IOHIDEvent 模拟触摸事件?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:13:22 25 4
gpt4 key购买 nike

我想在 iOS 6 上模拟触摸事件。我从 IOHIDEvent 中学到了一些有用的东西,这是一个用于人机界面设备的低级函数包。

发件人:https://github.com/kennytm/iphone-private-frameworks/tree/master/IOKit/hid我用IOHIDEvent得到了私有(private)框架,但是在iOS 4之后headers发生了变化,一些功能不再被支持。

有谁知道如何获取iOS6中的函数,或者知道如何在系统级模拟事件?

最佳答案

正如我在对 your other question today 的回答中提到的那样,您可以尝试从 GraphicsServices.framework 或 IOKit.framework 中查看 GSEvent.h

这里有一些关于 stackoverflow 的好答案可以帮助你:

iOS Private API: lock device and power off the screen

GSSendEvent - Inject Touch Event iOS

iOS touch event notifications (private API)

关于iphone - 如何通过 IOHIDEvent 模拟触摸事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17105027/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com