comparison src/video/x11/SDL_x11events.c @ 4681:5378f2d0754f

Fixed some Gesture bugs
author Jim Grandpre <jim.tla@gmail.com>
date Mon, 02 Aug 2010 00:14:53 -0400
parents 62e6a6e9720b
children 15dfe42edbfd
comparison
equal deleted inserted replaced
4680:229529693289 4681:5378f2d0754f
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 #ifdef SDL_INPUT_LINUXEV
41 //Touch Input/event* includes 41 //Touch Input/event* includes
42 #include <linux/input.h> 42 #include <linux/input.h>
43 #include <fcntl.h> 43 #include <fcntl.h>
44 #endif 44 #endif
45 /*#define DEBUG_XEVENTS*/ 45 /*#define DEBUG_XEVENTS*/
400 /* Keep processing pending events */ 400 /* Keep processing pending events */
401 while (X11_Pending(data->display)) { 401 while (X11_Pending(data->display)) {
402 X11_DispatchEvent(_this); 402 X11_DispatchEvent(_this);
403 } 403 }
404 404
405 #ifdef HAVE_LINUX_INPUT_H 405 #ifdef SDL_INPUT_LINUXEV
406 /* 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*/
407 int i = 0,rd; 407 int i = 0,rd;
408 char name[256]; 408 char name[256];
409 struct input_event ev[64]; 409 struct input_event ev[64];
410 int size = sizeof (struct input_event); 410 int size = sizeof (struct input_event);