src/video/x11/SDL_x11touch.c
changeset 5603 e1ca92e7f2ff
parent 5535 96594ac5fd1a
child 5966 2edecf22a2e7
--- a/src/video/x11/SDL_x11touch.c	Fri Aug 05 00:49:31 2011 -0400
+++ b/src/video/x11/SDL_x11touch.c	Fri Aug 05 00:55:29 2011 -0400
@@ -47,10 +47,9 @@
   while(!feof(fd)) {
     if(fgets(line,256,fd) <=0) continue;
     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);*/
+    if(vendor == 1386 || vendor==1){
+
+	sprintf(tstr,"/dev/input/event%i",event);
 
 	SDL_Touch touch;
 	touch.pressure_max = 0;
@@ -66,6 +65,7 @@
 	data->pressure = -1;
 	data->finger = 0;
 	data->up = SDL_FALSE;
+    data->down = SDL_FALSE;
 	
 
 	data->eventStream = open(tstr,