diff --git a/include/SDL_events.h b/include/SDL_events.h index 431a06fcc..f94bece80 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 */ diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c index 8a6361b44..25c3e9478 100644 --- a/src/events/SDL_mouse.c +++ b/src/events/SDL_mouse.c @@ -473,7 +473,8 @@ SDL_SendMouseMotion(int id, int relative, int x, int y, int pressure) 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;