Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11events.c @ 4669:62e6a6e9720b
Fixed x11 compile bugs.
author | jimtla |
---|---|
date | Thu, 22 Jul 2010 08:12:28 +0400 |
parents | 03dcb795c583 |
children | 5378f2d0754f |
comparison
equal
deleted
inserted
replaced
4668:a8ef4c3a5d8e | 4669:62e6a6e9720b |
---|---|
35 #include "SDL_timer.h" | 35 #include "SDL_timer.h" |
36 #include "SDL_syswm.h" | 36 #include "SDL_syswm.h" |
37 | 37 |
38 #include <stdio.h> | 38 #include <stdio.h> |
39 | 39 |
40 #ifdef HAVE_LINUX_INPUT_H | |
40 //Touch Input/event* includes | 41 //Touch Input/event* includes |
41 #include <linux/input.h> | 42 #include <linux/input.h> |
42 #include <fcntl.h> | 43 #include <fcntl.h> |
43 | 44 #endif |
44 /*#define DEBUG_XEVENTS*/ | 45 /*#define DEBUG_XEVENTS*/ |
45 | 46 |
46 static void | 47 static void |
47 X11_DispatchEvent(_THIS) | 48 X11_DispatchEvent(_THIS) |
48 { | 49 { |
399 /* Keep processing pending events */ | 400 /* Keep processing pending events */ |
400 while (X11_Pending(data->display)) { | 401 while (X11_Pending(data->display)) { |
401 X11_DispatchEvent(_this); | 402 X11_DispatchEvent(_this); |
402 } | 403 } |
403 | 404 |
404 | 405 #ifdef HAVE_LINUX_INPUT_H |
405 /* Process Touch events - TODO When X gets touch support, use that instead*/ | 406 /* Process Touch events - TODO When X gets touch support, use that instead*/ |
406 int i = 0,rd; | 407 int i = 0,rd; |
407 char name[256]; | 408 char name[256]; |
408 struct input_event ev[64]; | 409 struct input_event ev[64]; |
409 int size = sizeof (struct input_event); | 410 int size = sizeof (struct input_event); |
470 break; | 471 break; |
471 } | 472 } |
472 } | 473 } |
473 } | 474 } |
474 } | 475 } |
476 #endif | |
475 } | 477 } |
476 | 478 |
477 /* This is so wrong it hurts */ | 479 /* This is so wrong it hurts */ |
478 #define GNOME_SCREENSAVER_HACK | 480 #define GNOME_SCREENSAVER_HACK |
479 #ifdef GNOME_SCREENSAVER_HACK | 481 #ifdef GNOME_SCREENSAVER_HACK |