Mercurial > sdl-ios-xcode
comparison include/SDL_events.h @ 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 | d3baf5ac4e37 |
children | 64ce267332c6 |
comparison
equal
deleted
inserted
replaced
3571:19691cebb866 | 3572:6bb9952d5029 |
---|---|
184 int z; /**< Z coordinate, for future use */ | 184 int z; /**< Z coordinate, for future use */ |
185 int pressure; /**< Pressure reported by tablets */ | 185 int pressure; /**< Pressure reported by tablets */ |
186 int pressure_max; /**< Maximum value of the pressure reported by the device */ | 186 int pressure_max; /**< Maximum value of the pressure reported by the device */ |
187 int pressure_min; /**< Minimum value of the pressure reported by the device */ | 187 int pressure_min; /**< Minimum value of the pressure reported by the device */ |
188 int rotation; /**< For future use */ | 188 int rotation; /**< For future use */ |
189 int tilt; /**< For future use */ | 189 int tilt_x; /**< For future use */ |
190 int tilt_y; /**< For future use */ | |
190 int cursor; /**< The cursor being used in the event */ | 191 int cursor; /**< The cursor being used in the event */ |
191 int xrel; /**< The relative motion in the X direction */ | 192 int xrel; /**< The relative motion in the X direction */ |
192 int yrel; /**< The relative motion in the Y direction */ | 193 int yrel; /**< The relative motion in the Y direction */ |
193 } SDL_MouseMotionEvent; | 194 } SDL_MouseMotionEvent; |
194 | 195 |