In reply to:

Now, next problem is to try and get a polling loop inside my Hijack userland program to work. At the moment it looks like the program waits until a button has been pressed and then continues execution, any way around this?




I had the same problem. You can get around this with the ioctl EMPEG_HIJACK_POLLBUTTONS.

It is briefly discussed in this thread:

http://empeg.comms.net/php/showthreaded.php?Cat=&Board=hackers_prog&Number=43891&page=&view=&sb=&o=

I couldn't find much in the way of documentation, but with a bit of experimentation I got it to work properly. I'm hoping to release code within a few weeks that will demonstrate its use.