Removed debug print statements
authorSam Lantinga
Wed, 19 Jan 2011 19:51:04 -0800
changeset 50444913042e8572
parent 5043 da347bfed240
child 5045 1cee937d9fcc
Removed debug print statements
src/video/x11/SDL_x11touch.c
     1.1 --- a/src/video/x11/SDL_x11touch.c	Wed Jan 19 16:06:47 2011 -0800
     1.2 +++ b/src/video/x11/SDL_x11touch.c	Wed Jan 19 19:51:04 2011 -0800
     1.3 @@ -34,8 +34,6 @@
     1.4  X11_InitTouch(_THIS)
     1.5  {
     1.6  #ifdef SDL_INPUT_LINUXEV
     1.7 -  printf("Initializing touch...\n");
     1.8 -
     1.9    FILE *fd;
    1.10    fd = fopen("/proc/bus/input/devices","r");
    1.11    
    1.12 @@ -46,12 +44,11 @@
    1.13    int vendor = -1,product = -1,event = -1;
    1.14    while(!feof(fd)) {
    1.15      if(fgets(line,256,fd) <=0) continue;
    1.16 -    //printf("%s",line);
    1.17      if(line[0] == '\n') {
    1.18        if(vendor == 1386){
    1.19 -	printf("Wacom... Assuming it is a touch device\n");
    1.20 -	sprintf(tstr,"/dev/input/event%i",event);
    1.21 -	printf("At location: %s\n",tstr);
    1.22 +	/*printf("Wacom... Assuming it is a touch device\n");*/
    1.23 +	/*sprintf(tstr,"/dev/input/event%i",event);*/
    1.24 +	/*printf("At location: %s\n",tstr);*/
    1.25  
    1.26  	SDL_Touch touch;
    1.27  	touch.pressure_max = 0;
    1.28 @@ -69,14 +66,9 @@
    1.29  	data->up = SDL_FALSE;
    1.30  	
    1.31  
    1.32 -	printf("Opening device...\n");
    1.33 -	//printf("New Touch - DataPtr: %i\n",data);
    1.34  	data->eventStream = open(tstr, 
    1.35  				 O_RDONLY | O_NONBLOCK);
    1.36  	ioctl (data->eventStream, EVIOCGNAME (sizeof (tstr)), tstr);
    1.37 -	printf ("Reading From : %s\n", tstr);
    1.38 -
    1.39 -
    1.40  
    1.41  	int abs[5];
    1.42  	ioctl(data->eventStream,EVIOCGABS(0),abs);