Catching touch input
Michael 'Mickey' Lauer
mickey at openmoko.org
Wed Feb 14 21:21:41 CET 2007
Alan Ide wrote:
> Anyhow, I have decided to try some "testing" using SDL on this
> platform, but obviously the Neo1973 dosnt have any keyboard or mouse
> input, only touch screen (which I love BTW). So, how does one go
> about catching touch input to use inside of a program? I assume its
> handled like a mouse click event, passing the XY data and a clicked
> flag to a system variable somewhere, but how do I access such data??
SDL catches mouse input differently depending on which backend it uses, however to the SDL application programmer, you should just transparently get SDL_MOUSEMOTION and SDL_MOUSEBUTTON* events in our main loop.
--
- Michael Lauer <mickey at openmoko.org> http://openmoko.org/
============================================================================
Software for the worlds' first truly open Free Software mobile phone
More information about the community
mailing list