The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
evdev touchscreen and key
Andreas Lausch / TBT
Guest

Hi!

I have to move from SDL1.x to 2.0 because rapid keystrokes (e.g.
automatically generated ones) won't work with 1.x branch for linux/Xorg.
Since the target is a raspberry pi (2), I can't use X anymore with 2.0
branch, which means the events have to be fetched using evdev directly.

Problem is: the udev code only selects ID_INPUT_KEYBOARD and
ID_INPUT_MOUSE but neither ID_INPUT_TOUCHSCREEN nor ID_INPUT_KEY (so
touch events (ABS) from a keyboard would work but not from a touch screen).
Where ID_INPUT_TOUCHSCREEN is obvious and ID_INPUT_KEY would be for
GPIOs mapped into userspace (e.g. gpio-keys module).

Is there any chance that the file's author/maintainer might have time to
fix this?


Btw. is there any chance that the performance regression using X on
raspberry will be fixed? Rendering to a "texture" (uint32_t*) and
presenting it using the xorg driver results in 0.5 FPS. The very same
code rendering (directly) to an SDL_Surface and flipping it ran with
20FPS (SW Limit) at <10% Load for SDL1.2 when only flipping or >10FPS
(at ~100%) when completely redrawing it.
I'd love to use X, because the "box" will also run X anyway (for other
programs) and allowing to use a/the same Xorg.conf for both programs
would be nice.


Best regards and
thanks for the great project
Andreas Lausch
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org