Analysis of iOS Touch elf simulation of touch-type plug

Source: Internet
Author: User
Tags lua

one, external functions:

Similar to the analog button, this type of plug is mainly used for image recognition, using LUAC script to identify the image. And then through the private API to achieve touch-screen operation function.

second, external features

Plug-in installation, there will be the following three main procedures, Touchsprite,tsevent,tsdeamon.


Among them, Touchsprite is GUI interface program, its main function is to provide interactive interface by user choose to load script. (script saved in/user/media/touchsprite/lua)

third, plug implementation

The other two programs are the core procedures for the realization of analog touch control.

Where Tsdeamon is the daemon, monitoring the volume of the phone's "-" key event (used to eject the window that runs the script), and is responsible for parsing the Lua script. and pass the touch events in the script through shared memory to tsevent processing

And Tsevent is primarily responsible for handling analog touch information, which leverages Apple's series of proprietary APIs:


Realizing the function of analog touch control

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.