Dragbat
9 hours ago
This is awesome!
Also, for the mouse emulation, how about keep checking forever whether mouse is down, and fire only mouse-up and mouse-down events (so no constant firing probably), however that would be done, because i'd guess broadcast messages won't work on a pen-based OS but could be wrong.
Otherwise maybe you can just dedicate some keys to mouse movement (possibly arrow keys), and one key for click.