Resource icon

Simpler touchscreen example 1.0

This is yet another touch-screen sample program. Why did I make this when there are already a couple out there? Looking at the other sample code, I thought the touch screen was harder to use than it is. It's actually very easy, which this code hopefully illustrates.

This code is in plain C and uses SDL's mouse routines to talk to the touch screen -- thus touchscreen code can be tested on a PC with a mouse. It can be dynamically linked with the official GP2X SDK to produce a small binary that works on either the F100 or the F200 with GPH firmware. I have tested the resulting program on an F100 with firmware 2.0.0 and an F200 with firmware 4.0.0. On the F100, the program simply doesn't get mouse events. Everything else works as expected. I have not tested the dynamic executable on Open2x firmware.

I've included a script which will build the example using either the GP2X SDK or the Open2x toolchain, a README explaining build and link issues, and a pre-built binary.
Author
Micah Stetson
Downloads
1,141
Views
1,141
First release
Last update
Rating
0.00 star(s) 0 ratings
Back
Top