Posted by Jonathan Oxer
Finishing off the "Touch Control Panel" project today for the book I wrote a simple app in Processing that displays the status of virtual buttons on the touch screen. I've defined polygons on the touchscreen as buttons and put an underlay behind the screen to show their location, and the coordinates are sent 10 times / second to the host. The Processing app then displays the buttons and shows whether they are on or off.
The source code for the Processing app is up now on GitHub: