318 int w,
int h,
int hot_x,
461#define SDL_BUTTON(X) (1 << ((X)-1))
462#define SDL_BUTTON_LEFT 1
463#define SDL_BUTTON_MIDDLE 2
464#define SDL_BUTTON_RIGHT 3
465#define SDL_BUTTON_X1 4
466#define SDL_BUTTON_X2 5
467#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
468#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
469#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
470#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)
471#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)
void SDL_DestroyCursor(SDL_Cursor *cursor)
SDL_Cursor * SDL_GetCursor(void)
Uint32 SDL_GetRelativeMouseState(float *x, float *y)
SDL_Window * SDL_GetMouseFocus(void)
int SDL_WarpMouseGlobal(float x, float y)
SDL_bool SDL_GetRelativeMouseMode(void)
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor().
@ SDL_SYSTEM_CURSOR_SIZENS
@ SDL_SYSTEM_CURSOR_ARROW
@ SDL_SYSTEM_CURSOR_SIZENWSE
@ SDL_SYSTEM_CURSOR_SIZENESW
@ SDL_SYSTEM_CURSOR_IBEAM
@ SDL_SYSTEM_CURSOR_WAITARROW
@ SDL_SYSTEM_CURSOR_SIZEALL
@ SDL_SYSTEM_CURSOR_SIZEWE
@ SDL_SYSTEM_CURSOR_CROSSHAIR
SDL_bool SDL_CursorVisible(void)
Uint32 SDL_GetGlobalMouseState(float *x, float *y)
struct SDL_Cursor SDL_Cursor
SDL_Cursor * SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
Uint32 SDL_GetMouseState(float *x, float *y)
void SDL_WarpMouseInWindow(SDL_Window *window, float x, float y)
SDL_Cursor * SDL_CreateCursor(const Uint8 *data, const Uint8 *mask, int w, int h, int hot_x, int hot_y)
int SDL_CaptureMouse(SDL_bool enabled)
SDL_Cursor * SDL_CreateSystemCursor(SDL_SystemCursor id)
SDL_MouseWheelDirection
Scroll direction types for the Scroll event.
int SDL_SetRelativeMouseMode(SDL_bool enabled)
int SDL_SetCursor(SDL_Cursor *cursor)
SDL_Cursor * SDL_GetDefaultCursor(void)
This is a general header that includes C language support.
Header file for SDL video functions.
struct SDL_Window SDL_Window
The type used to identify a window.
A collection of pixels used in software blitting.