diff options
author | Sam Lantinga <slouken@libsdl.org> | 2009-12-16 00:44:53 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2009-12-16 00:44:53 +0000 |
commit | 1ca4e2cee3ae46b1289961f9d17d93de5b582908 (patch) | |
tree | 09869cf883379ad9654d3cb8136a7229f7031832 /include/SDL_events.h | |
parent | 240b5fcaab8430e1cde8e2f775443543eef224fa (diff) |
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.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404321
Diffstat (limited to 'include/SDL_events.h')
-rw-r--r-- | include/SDL_events.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/SDL_events.h b/include/SDL_events.h index 431a06fc..f94bece8 100644 --- a/include/SDL_events.h +++ b/include/SDL_events.h @@ -186,7 +186,8 @@ typedef struct SDL_MouseMotionEvent int pressure_max; /**< Maximum value of the pressure reported by the device */ int pressure_min; /**< Minimum value of the pressure reported by the device */ int rotation; /**< For future use */ - int tilt; /**< For future use */ + int tilt_x; /**< For future use */ + int tilt_y; /**< For future use */ int cursor; /**< The cursor being used in the event */ int xrel; /**< The relative motion in the X direction */ int yrel; /**< The relative motion in the Y direction */ |