comparison 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
comparison
equal deleted inserted replaced
3571:19691cebb866 3572:6bb9952d5029
471 event.motion.z = mouse->z; 471 event.motion.z = mouse->z;
472 event.motion.pressure = mouse->pressure; 472 event.motion.pressure = mouse->pressure;
473 event.motion.pressure_max = mouse->pressure_max; 473 event.motion.pressure_max = mouse->pressure_max;
474 event.motion.pressure_min = mouse->pressure_min; 474 event.motion.pressure_min = mouse->pressure_min;
475 event.motion.rotation = 0; 475 event.motion.rotation = 0;
476 event.motion.tilt = 0; 476 event.motion.tilt_x = 0;
477 event.motion.tilt_y = 0;
477 event.motion.cursor = mouse->current_end; 478 event.motion.cursor = mouse->current_end;
478 event.motion.xrel = xrel; 479 event.motion.xrel = xrel;
479 event.motion.yrel = yrel; 480 event.motion.yrel = yrel;
480 event.motion.windowID = mouse->focus; 481 event.motion.windowID = mouse->focus;
481 posted = (SDL_PushEvent(&event) > 0); 482 posted = (SDL_PushEvent(&event) > 0);