Use specific types in public headers (#9205)
Uses specific typedef'd types instead of generic integral types where applicable.main
parent
db24560387
commit
e268cdbec6
|
@ -574,7 +574,7 @@ 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;
|
Uint32 reserved;
|
||||||
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
||||||
Uint32 windowID; /**< The window with pen focus, if any */
|
SDL_WindowID windowID; /**< The window with pen focus, if any */
|
||||||
SDL_PenID which; /**< The pen instance id */
|
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 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 */
|
Uint8 state; /**< ::SDL_PRESSED on ::SDL_EVENT_PEN_DOWN and ::SDL_RELEASED on ::SDL_EVENT_PEN_UP */
|
||||||
|
@ -594,7 +594,7 @@ typedef struct SDL_PenMotionEvent
|
||||||
Uint32 type; /**< ::SDL_EVENT_PEN_MOTION */
|
Uint32 type; /**< ::SDL_EVENT_PEN_MOTION */
|
||||||
Uint32 reserved;
|
Uint32 reserved;
|
||||||
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
||||||
Uint32 windowID; /**< The window with pen focus, if any */
|
SDL_WindowID windowID; /**< The window with pen focus, if any */
|
||||||
SDL_PenID which; /**< The pen instance id */
|
SDL_PenID which; /**< The pen instance id */
|
||||||
Uint8 padding1;
|
Uint8 padding1;
|
||||||
Uint8 padding2;
|
Uint8 padding2;
|
||||||
|
@ -614,7 +614,7 @@ 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;
|
Uint32 reserved;
|
||||||
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
||||||
Uint32 windowID; /**< The window with pen focus, if any */
|
SDL_WindowID windowID; /**< The window with pen focus, if any */
|
||||||
SDL_PenID which; /**< The pen instance id */
|
SDL_PenID which; /**< The pen instance id */
|
||||||
Uint8 button; /**< The pen button index (1 represents the pen tip for compatibility with mouse events) */
|
Uint8 button; /**< The pen button index (1 represents the pen tip for compatibility with mouse events) */
|
||||||
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
|
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
|
||||||
|
|
|
@ -56,9 +56,9 @@ extern "C" {
|
||||||
|
|
||||||
typedef Uint32 SDL_PenID; /**< SDL_PenIDs identify pens uniquely within a session */
|
typedef Uint32 SDL_PenID; /**< SDL_PenIDs identify pens uniquely within a session */
|
||||||
|
|
||||||
#define SDL_PEN_INVALID ((Uint32)0) /**< Reserved invalid ::SDL_PenID is valid */
|
#define SDL_PEN_INVALID ((SDL_PenID)0) /**< Reserved invalid ::SDL_PenID is valid */
|
||||||
|
|
||||||
#define SDL_PEN_MOUSEID ((Uint32)-2) /**< Device ID for mouse events triggered by pen events */
|
#define SDL_PEN_MOUSEID ((SDL_PenID)-2) /**< Device ID for mouse events triggered by pen events */
|
||||||
|
|
||||||
#define SDL_PEN_INFO_UNKNOWN (-1) /**< Marks unknown information when querying the pen */
|
#define SDL_PEN_INFO_UNKNOWN (-1) /**< Marks unknown information when querying the pen */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue