Commit c14d8951 authored by Sam Lantinga's avatar Sam Lantinga

Removed debug print statements

parent e3408530
...@@ -34,8 +34,6 @@ void ...@@ -34,8 +34,6 @@ void
X11_InitTouch(_THIS) X11_InitTouch(_THIS)
{ {
#ifdef SDL_INPUT_LINUXEV #ifdef SDL_INPUT_LINUXEV
printf("Initializing touch...\n");
FILE *fd; FILE *fd;
fd = fopen("/proc/bus/input/devices","r"); fd = fopen("/proc/bus/input/devices","r");
...@@ -46,12 +44,11 @@ X11_InitTouch(_THIS) ...@@ -46,12 +44,11 @@ X11_InitTouch(_THIS)
int vendor = -1,product = -1,event = -1; int vendor = -1,product = -1,event = -1;
while(!feof(fd)) { while(!feof(fd)) {
if(fgets(line,256,fd) <=0) continue; if(fgets(line,256,fd) <=0) continue;
//printf("%s",line);
if(line[0] == '\n') { if(line[0] == '\n') {
if(vendor == 1386){ if(vendor == 1386){
printf("Wacom... Assuming it is a touch device\n"); /*printf("Wacom... Assuming it is a touch device\n");*/
sprintf(tstr,"/dev/input/event%i",event); /*sprintf(tstr,"/dev/input/event%i",event);*/
printf("At location: %s\n",tstr); /*printf("At location: %s\n",tstr);*/
SDL_Touch touch; SDL_Touch touch;
touch.pressure_max = 0; touch.pressure_max = 0;
...@@ -69,14 +66,9 @@ X11_InitTouch(_THIS) ...@@ -69,14 +66,9 @@ X11_InitTouch(_THIS)
data->up = SDL_FALSE; data->up = SDL_FALSE;
printf("Opening device...\n");
//printf("New Touch - DataPtr: %i\n",data);
data->eventStream = open(tstr, data->eventStream = open(tstr,
O_RDONLY | O_NONBLOCK); O_RDONLY | O_NONBLOCK);
ioctl (data->eventStream, EVIOCGNAME (sizeof (tstr)), tstr); ioctl (data->eventStream, EVIOCGNAME (sizeof (tstr)), tstr);
printf ("Reading From : %s\n", tstr);
int abs[5]; int abs[5];
ioctl(data->eventStream,EVIOCGABS(0),abs); ioctl(data->eventStream,EVIOCGABS(0),abs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment