Touch Screen Support

Hello,

I’m currently developping a SDL application on a system which use a "elo"
touch screen.
When I run my application while X server is running, everything work
perfectly (I’m able to use elo touch screen as a mouse).
When I run the same application without running X server, I’m not able to
use the elo touch screen (only for display).

It is normal, because the driver of my elo touch screen is loaded by the X
server (defined into xorg.conf).

What do I need to do to use my elo touch screen without starting X server ?

I have found some information that I point here, but due to my lack of
experience with SDL, I can’t manage to find how to use them to solve my
problem:
http://twomix.devolution.com/pipermail/sdl/2005-December/071569.html

Thanks in advance for your help

Sincerely

Bertrand CACHET

Total stab in the dark, but would running GPM help!? :^/On Mon, May 22, 2006 at 03:00:40PM +0200, Bertrand CACHET wrote:

It is normal, because the driver of my elo touch screen is loaded by the X
server (defined into xorg.conf).


-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/

HI,

In fact I have found a solution to my problem.
Elo Touch Screen is supported by SDL from version 1.1.8.
All you need to do is to indicate to the SDL engine that you want to use the
elo touch system with frame buffer console (not X).
To do that we have the SDL_putenv method.
In my program I have added three lines:
SDL_putenv(“SDL_VIDEODRIVER=fbcon”); //We use Frame Buffer Console which
support elotouch and don’t use X
SDL_putenv(“SDL_MOUSEDRV=ELO”);//We use elo touch screen as mouse
SDL_putenv(“SDL_MOUSEDEV=/dev/ttyS0”);//elo touch screen is plugged on
COM1

And everything work perfectly now.
SDL is a very good engine.

Hope it can help people

Bertrand

2006/5/22, Bill Kendrick :>

On Mon, May 22, 2006 at 03:00:40PM +0200, Bertrand CACHET wrote:

It is normal, because the driver of my elo touch screen is loaded by the
X
server (defined into xorg.conf).

Total stab in the dark, but would running GPM help!? :^/


-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl