PDA

Ver la versión completa : Simpler touchscreen example



DCEmu.co.uk
02/06/2008, 23:00
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.

http://www.gp2x.de/cgi-bin/cfiles.cgi?0,0,0,0,3,2609


Más información... (http://www.dcemu.co.uk/vbulletin/showthread.php?t=116290&goto=newpost)

doble-h
02/06/2008, 23:53
Excelente calculadora, va muy bien esto de ser tactil

Zizti
03/06/2008, 13:02
Excelente calculadora, va muy bien esto de ser tactil
perdón?? por lo que he priobado esto es para saber si la tactil funciona no?? a mi hay sitios en los k me dice no pressed.. eso es k tengo pixels muertos??

doble-h
03/06/2008, 13:11
perdón?? por lo que he priobado esto es para saber si la tactil funciona no?? a mi hay sitios en los k me dice no pressed.. eso es k tengo pixels muertos??

me equivocado de post xDD