diff src/video/x11/SDL_eventtouch.c @ 4678:f8431f66613d

Added SDL_TouchID, SDL_FingerID, SDL_GestureID types. Converted to integer cioordinates (<- not working).
author jimtla
date Sat, 31 Jul 2010 20:02:54 +0400
parents 62e6a6e9720b
children 5378f2d0754f
line wrap: on
line diff
--- a/src/video/x11/SDL_eventtouch.c	Sat Jul 31 01:24:50 2010 +0400
+++ b/src/video/x11/SDL_eventtouch.c	Sat Jul 31 20:02:54 2010 +0400
@@ -56,9 +56,6 @@
 	touch.pressure_max = 0;
 	touch.pressure_min = 0;
 	touch.id = event; 
-
-	
-
 	
 
 	touch.driverdata = SDL_malloc(sizeof(EventTouchData));
@@ -76,19 +73,17 @@
 	ioctl(data->eventStream,EVIOCGABS(0),abs);	
 	touch.x_min = abs[1];
 	touch.x_max = abs[2];
-	touch.xres = touch.x_max - touch.x_min;
+	touch.native_xres = touch.x_max - touch.x_min;
 	ioctl(data->eventStream,EVIOCGABS(ABS_Y),abs);	
 	touch.y_min = abs[1];
 	touch.y_max = abs[2];
-	touch.yres = touch.y_max - touch.y_min;
+	touch.native_yres = touch.y_max - touch.y_min;
 	ioctl(data->eventStream,EVIOCGABS(ABS_PRESSURE),abs);	
 	touch.pressure_min = abs[1];
 	touch.pressure_max = abs[2];
-	touch.pressureres = touch.pressure_max - touch.pressure_min;
-
+	touch.native_pressureres = touch.pressure_max - touch.pressure_min;
 
 	SDL_AddTouch(&touch, tstr);
-
       }
       vendor = -1;
       product = -1;