diff src/events/SDL_mouse.c @ 3572:6bb9952d5029

Fixed bug #642 Gerry JJ 2008-11-09 02:11:49 PST The SDL_MouseMotionEvent struct has a field named "tilt" (currently marked "for future use"), for tablet stylus tilt information. However, one value is not enough for this, as tilt is two-dimensional. Reserving only one field for future use is no good when you're going to need two, so there should be two fields, tilt_x and tilt_y.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 16 Dec 2009 00:44:53 +0000
parents 5d7ef5970073
children f8816ffa210b
line wrap: on
line diff
--- a/src/events/SDL_mouse.c	Tue Dec 15 20:53:09 2009 +0000
+++ b/src/events/SDL_mouse.c	Wed Dec 16 00:44:53 2009 +0000
@@ -473,7 +473,8 @@
         event.motion.pressure_max = mouse->pressure_max;
         event.motion.pressure_min = mouse->pressure_min;
         event.motion.rotation = 0;
-        event.motion.tilt = 0;
+        event.motion.tilt_x = 0;
+        event.motion.tilt_y = 0;
         event.motion.cursor = mouse->current_end;
         event.motion.xrel = xrel;
         event.motion.yrel = yrel;