Sunday, August 18, 2013

android screen touch record and replay, written in C++

Please wait a few seconds for code to be highlighted.
There is a corresponding Chinese version.
http://www.cnblogs.com/zhangzheng/p/3261224.html

This program actually recordes all input events, including touch screen and keyboard events, etc.

The basic priciple is, when recording, we read all event files under /dev/input and sort according to time. In replaying we write them back, and sleep intervals.

usage:
event record /path/file1
event replay /path/file1

 stdafx.h main.cpp replay.cpp record.cpp

No comments:

Post a Comment