[SDL] hg x11 input broke ?

Seb DA ROCHA seb.darocha at gmail.com
Thu Dec 23 06:14:19 PST 2010


Hi,

I tried to compile hg sdl on my ubuntu 10.10 32bits.

I had a problem when compiling SDL_x11events.c (it complained about not
knowing the EventTouchData blabla).
I guess I missed some setup (I called a simple ./configure), but changing
this code, it compiles and most of the tests work

----------------------------------------------------------------
seba at seba-EasyNote-MB87:~/dev/sdl$ hg diff
diff -r c38ec0f7bad8 src/video/x11/SDL_x11events.c
--- a/src/video/x11/SDL_x11events.c    Thu Dec 23 13:43:15 2010 +0100
+++ b/src/video/x11/SDL_x11events.c    Thu Dec 23 15:01:07 2010 +0100
@@ -31,6 +31,7 @@
 #include "../../events/SDL_events_c.h"
 #include "../../events/SDL_mouse_c.h"
 #include "../../events/SDL_touch_c.h"
+#include "SDL_x11touch.h"

 #include "SDL_timer.h"
 #include "SDL_syswm.h"
diff -r c38ec0f7bad8 src/video/x11/SDL_x11touch.h
--- a/src/video/x11/SDL_x11touch.h    Thu Dec 23 13:43:15 2010 +0100
+++ b/src/video/x11/SDL_x11touch.h    Thu Dec 23 15:01:07 2010 +0100
@@ -26,14 +26,12 @@


 //What should this be?
-#if SDL_VIDEO_DRIVER_X11_XINPUT
 typedef struct EventTouchData
 {
     int x,y,pressure,finger; //Temporary Variables until sync
     int eventStream;
     SDL_bool up;
 } EventTouchData;
-#endif

 extern void X11_InitTouch(_THIS);
 extern void X11_QuitTouch(_THIS);
----------------------------------------------------------------

Was it really broke or I missed something like "You need to disable touch to
use linuxev" ?

Thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20101223/6a681a0c/attachment-0007.htm>


More information about the SDL mailing list