Thursday, November 4, 2010

Hooking and watching X events.

xev is a program used to test x functions.  It may be modified to only monitor x events on a screen.

by making it own the entire desktop, be transparent and have no content any keystroke or mouse press may be intercepted and dealt with.

http://xev.sourcearchive.com/documentation/1:1.0.2-0ubuntu1/xev_8c-source.html

The above link is a browseable pointer to the source.  will update on the requirements to modify it to be useful.

Use an extension xtrap and record the button events.
sample programs and info @

http://www.x.org/releases/current/doc/man/man1/xtrapin.1.html

google capture of xtrap architecture info

http://webcache.googleusercontent.com/search?q=cache:WPDkadiR0zsJ:www.meowfishies.com/code/XTrap_Arch.ps+xtrap+extension&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a

the above ps seems to be part of the xtrap distro.
also suggested to use xrecord to get the events.

No comments:

Post a Comment