|
@@ -571,18 +571,18 @@ typedef struct SDL_TouchFingerEvent
|
|
|
*/
|
|
|
typedef struct SDL_PenTipEvent
|
|
|
{
|
|
|
- Uint32 type; /**< ::SDL_EVENT_PEN_DOWN or ::SDL_EVENT_PEN_UP */
|
|
|
+ Uint32 type; /**< ::SDL_EVENT_PEN_DOWN or ::SDL_EVENT_PEN_UP */
|
|
|
Uint32 reserved;
|
|
|
- Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
|
|
- Uint32 windowID; /**< The window with pen focus, if any */
|
|
|
- SDL_PenID which; /**< The pen instance id */
|
|
|
- Uint8 tip; /**< ::SDL_PEN_TIP_INK when using a regular pen tip, or ::SDL_PEN_TIP_ERASER if the pen is being used as an eraser (e.g., flipped to use the eraser tip) */
|
|
|
- Uint8 state; /**< ::SDL_PRESSED on ::SDL_EVENT_PEN_DOWN and ::SDL_RELEASED on ::SDL_EVENT_PEN_UP */
|
|
|
- Uint16 pen_state; /**< Pen button masks (where SDL_BUTTON(1) is the first button, SDL_BUTTON(2) is the second button etc.),
|
|
|
- ::SDL_PEN_DOWN_MASK is set if the pen is touching the surface, and
|
|
|
- ::SDL_PEN_ERASER_MASK is set if the pen is (used as) an eraser. */
|
|
|
- float x; /**< X coordinate, relative to window */
|
|
|
- float y; /**< Y coordinate, relative to window */
|
|
|
+ Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
|
|
+ SDL_WindowID windowID; /**< The window with pen focus, if any */
|
|
|
+ SDL_PenID which; /**< The pen instance id */
|
|
|
+ Uint8 tip; /**< ::SDL_PEN_TIP_INK when using a regular pen tip, or ::SDL_PEN_TIP_ERASER if the pen is being used as an eraser (e.g., flipped to use the eraser tip) */
|
|
|
+ Uint8 state; /**< ::SDL_PRESSED on ::SDL_EVENT_PEN_DOWN and ::SDL_RELEASED on ::SDL_EVENT_PEN_UP */
|
|
|
+ Uint16 pen_state; /**< Pen button masks (where SDL_BUTTON(1) is the first button, SDL_BUTTON(2) is the second button etc.),
|
|
|
+ ::SDL_PEN_DOWN_MASK is set if the pen is touching the surface, and
|
|
|
+ ::SDL_PEN_ERASER_MASK is set if the pen is (used as) an eraser. */
|
|
|
+ float x; /**< X coordinate, relative to window */
|
|
|
+ float y; /**< Y coordinate, relative to window */
|
|
|
float axes[SDL_PEN_NUM_AXES]; /**< Pen axes such as pressure and tilt (ordered as per ::SDL_PenAxis) */
|
|
|
} SDL_PenTipEvent;
|
|
|
|
|
@@ -591,18 +591,18 @@ typedef struct SDL_PenTipEvent
|
|
|
*/
|
|
|
typedef struct SDL_PenMotionEvent
|
|
|
{
|
|
|
- Uint32 type; /**< ::SDL_EVENT_PEN_MOTION */
|
|
|
+ Uint32 type; /**< ::SDL_EVENT_PEN_MOTION */
|
|
|
Uint32 reserved;
|
|
|
- Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
|
|
- Uint32 windowID; /**< The window with pen focus, if any */
|
|
|
- SDL_PenID which; /**< The pen instance id */
|
|
|
+ Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
|
|
+ SDL_WindowID windowID; /**< The window with pen focus, if any */
|
|
|
+ SDL_PenID which; /**< The pen instance id */
|
|
|
Uint8 padding1;
|
|
|
Uint8 padding2;
|
|
|
- Uint16 pen_state; /**< Pen button masks (where SDL_BUTTON(1) is the first button, SDL_BUTTON(2) is the second button etc.),
|
|
|
- ::SDL_PEN_DOWN_MASK is set if the pen is touching the surface, and
|
|
|
- ::SDL_PEN_ERASER_MASK is set if the pen is (used as) an eraser. */
|
|
|
- float x; /**< X coordinate, relative to window */
|
|
|
- float y; /**< Y coordinate, relative to window */
|
|
|
+ Uint16 pen_state; /**< Pen button masks (where SDL_BUTTON(1) is the first button, SDL_BUTTON(2) is the second button etc.),
|
|
|
+ ::SDL_PEN_DOWN_MASK is set if the pen is touching the surface, and
|
|
|
+ ::SDL_PEN_ERASER_MASK is set if the pen is (used as) an eraser. */
|
|
|
+ float x; /**< X coordinate, relative to window */
|
|
|
+ float y; /**< Y coordinate, relative to window */
|
|
|
float axes[SDL_PEN_NUM_AXES]; /**< Pen axes such as pressure and tilt (ordered as per ::SDL_PenAxis) */
|
|
|
} SDL_PenMotionEvent;
|
|
|
|
|
@@ -611,18 +611,18 @@ typedef struct SDL_PenMotionEvent
|
|
|
*/
|
|
|
typedef struct SDL_PenButtonEvent
|
|
|
{
|
|
|
- Uint32 type; /**< ::SDL_EVENT_PEN_BUTTON_DOWN or ::SDL_EVENT_PEN_BUTTON_UP */
|
|
|
+ Uint32 type; /**< ::SDL_EVENT_PEN_BUTTON_DOWN or ::SDL_EVENT_PEN_BUTTON_UP */
|
|
|
Uint32 reserved;
|
|
|
- Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
|
|
- Uint32 windowID; /**< The window with pen focus, if any */
|
|
|
- SDL_PenID which; /**< The pen instance id */
|
|
|
- Uint8 button; /**< The pen button index (1 represents the pen tip for compatibility with mouse events) */
|
|
|
- Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
|
|
|
- Uint16 pen_state; /**< Pen button masks (where SDL_BUTTON(1) is the first button, SDL_BUTTON(2) is the second button etc.),
|
|
|
- ::SDL_PEN_DOWN_MASK is set if the pen is touching the surface, and
|
|
|
- ::SDL_PEN_ERASER_MASK is set if the pen is (used as) an eraser. */
|
|
|
- float x; /**< X coordinate, relative to window */
|
|
|
- float y; /**< Y coordinate, relative to window */
|
|
|
+ Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
|
|
+ SDL_WindowID windowID; /**< The window with pen focus, if any */
|
|
|
+ SDL_PenID which; /**< The pen instance id */
|
|
|
+ Uint8 button; /**< The pen button index (1 represents the pen tip for compatibility with mouse events) */
|
|
|
+ Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
|
|
|
+ Uint16 pen_state; /**< Pen button masks (where SDL_BUTTON(1) is the first button, SDL_BUTTON(2) is the second button etc.),
|
|
|
+ ::SDL_PEN_DOWN_MASK is set if the pen is touching the surface, and
|
|
|
+ ::SDL_PEN_ERASER_MASK is set if the pen is (used as) an eraser. */
|
|
|
+ float x; /**< X coordinate, relative to window */
|
|
|
+ float y; /**< Y coordinate, relative to window */
|
|
|
float axes[SDL_PEN_NUM_AXES]; /**< Pen axes such as pressure and tilt (ordered as per ::SDL_PenAxis) */
|
|
|
} SDL_PenButtonEvent;
|
|
|
|