I’m using a PenMount touch screen using DMC9000 controller, and I wrote a
bit of code to hadle it.
Instead of handle it in my application code I’m thinking about adding
support for this touch screen into SDL library.
Wich is the best way to do it?
I saw mouse driver implementation is different for each video interface
(i.e. framebuffer console or X).
Should I add touch screen code to each video implementation?
Maybe it is better to feed motion data from /dev/gpm?
Or it is better using SDL_PushEvent?
Thanks
Alessandro Staltari.
Alessandro Staltari wrote:
I’m using a PenMount touch screen using DMC9000 controller, and I wrote a
bit of code to hadle it.
Instead of handle it in my application code I’m thinking about adding
support for this touch screen into SDL library.
Wich is the best way to do it?
I saw mouse driver implementation is different for each video interface
(i.e. framebuffer console or X).
Should I add touch screen code to each video implementation?
Maybe it is better to feed motion data from /dev/gpm?
Or it is better using SDL_PushEvent?
Thanks
Alessandro Staltari.
I’m interested in this…I have a touchscreen on my tuxscreen.
I will be using SDL on it, and want to have absolute coords handling…–
-==-
Jon Atkins
http://jonatkins.org/
I’m using a PenMount touch screen using DMC9000 controller, and I wrote a
bit of code to hadle it.
Instead of handle it in my application code I’m thinking about adding
support for this touch screen into SDL library.
Wich is the best way to do it?
I saw mouse driver implementation is different for each video interface
(i.e. framebuffer console or X).
Should I add touch screen code to each video implementation?
Maybe it is better to feed motion data from /dev/gpm?
Or it is better using SDL_PushEvent?
You can add PenMount touchscreen support for the framebuffer console
and PS2 GS driver the same way the elo touchscreen support was added.
Just look at SDL_fbelo.c and SDL_fbevents.c
If you extend GPM to handle the PenMount touchscreen, then any linux
application which has GPM support (including SDL) will be able to use
the touch screen as a normal mouse.
You could also write code specific to your application that uses
SDL_PushEvent(), but general SDL users wouldn’t benefit from it.
See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment