# HG changeset patch # User Sam Lantinga # Date 1295495464 28800 # Node ID 4913042e8572ff9af128263f12b1ea235e5f406e # Parent da347bfed2402836977e606d3e8b5f30524c6a1d Removed debug print statements diff -r da347bfed240 -r 4913042e8572 src/video/x11/SDL_x11touch.c --- a/src/video/x11/SDL_x11touch.c Wed Jan 19 16:06:47 2011 -0800 +++ b/src/video/x11/SDL_x11touch.c Wed Jan 19 19:51:04 2011 -0800 @@ -34,8 +34,6 @@ X11_InitTouch(_THIS) { #ifdef SDL_INPUT_LINUXEV - printf("Initializing touch...\n"); - FILE *fd; fd = fopen("/proc/bus/input/devices","r"); @@ -46,12 +44,11 @@ int vendor = -1,product = -1,event = -1; while(!feof(fd)) { if(fgets(line,256,fd) <=0) continue; - //printf("%s",line); if(line[0] == '\n') { if(vendor == 1386){ - printf("Wacom... Assuming it is a touch device\n"); - sprintf(tstr,"/dev/input/event%i",event); - printf("At location: %s\n",tstr); + /*printf("Wacom... Assuming it is a touch device\n");*/ + /*sprintf(tstr,"/dev/input/event%i",event);*/ + /*printf("At location: %s\n",tstr);*/ SDL_Touch touch; touch.pressure_max = 0; @@ -69,14 +66,9 @@ data->up = SDL_FALSE; - printf("Opening device...\n"); - //printf("New Touch - DataPtr: %i\n",data); data->eventStream = open(tstr, O_RDONLY | O_NONBLOCK); ioctl (data->eventStream, EVIOCGNAME (sizeof (tstr)), tstr); - printf ("Reading From : %s\n", tstr); - - int abs[5]; ioctl(data->eventStream,EVIOCGABS(0),abs);