Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_eventtouch.c @ 4669:62e6a6e9720b
Fixed x11 compile bugs.
author | jimtla |
---|---|
date | Thu, 22 Jul 2010 08:12:28 +0400 |
parents | eea1bf53effa |
children | f8431f66613d |
comparison
equal
deleted
inserted
replaced
4668:a8ef4c3a5d8e | 4669:62e6a6e9720b |
---|---|
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 #include "SDL_x11video.h" | 23 #include "SDL_x11video.h" |
24 #include "SDL_eventtouch.h" | 24 #include "SDL_eventtouch.h" |
25 #include "../../events/SDL_touch_c.h" | 25 #include "../../events/SDL_touch_c.h" |
26 | 26 |
27 #ifdef HAVE_LINUX_INPUT_H | |
27 #include <linux/input.h> | 28 #include <linux/input.h> |
28 #include <fcntl.h> | 29 #include <fcntl.h> |
30 #endif | |
29 | 31 |
30 void | 32 void |
31 X11_InitTouch(_THIS) | 33 X11_InitTouch(_THIS) |
32 { | 34 { |
35 #ifdef HAVE_LINUX_INPUT_H | |
33 printf("Initializing touch...\n"); | 36 printf("Initializing touch...\n"); |
34 | 37 |
35 FILE *fd; | 38 FILE *fd; |
36 fd = fopen("/proc/bus/input/devices","r"); | 39 fd = fopen("/proc/bus/input/devices","r"); |
37 | 40 |
107 } | 110 } |
108 } | 111 } |
109 } | 112 } |
110 | 113 |
111 close(fd); | 114 close(fd); |
115 #endif | |
112 } | 116 } |
113 | 117 |
114 void | 118 void |
115 X11_QuitTouch(_THIS) | 119 X11_QuitTouch(_THIS) |
116 { | 120 { |