298 int w,
int h,
int hot_x,
412 #define SDL_BUTTON(X) (1 << ((X)-1)) 413 #define SDL_BUTTON_LEFT 1 414 #define SDL_BUTTON_MIDDLE 2 415 #define SDL_BUTTON_RIGHT 3 416 #define SDL_BUTTON_X1 4 417 #define SDL_BUTTON_X2 5 418 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) 419 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) 420 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) 421 #define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1) 422 #define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2) SDL_Cursor * SDL_GetCursor(void)
SDL_bool SDL_GetRelativeMouseMode(void)
A collection of pixels used in software blitting.
SDL_Window * SDL_GetMouseFocus(void)
void SDL_WarpMouseInWindow(SDL_Window *window, int x, int y)
int SDL_CaptureMouse(SDL_bool enabled)
int SDL_WarpMouseGlobal(int x, int y)
SDL_Cursor * SDL_CreateSystemCursor(SDL_SystemCursor id)
SDL_Cursor * SDL_CreateCursor(const Uint8 *data, const Uint8 *mask, int w, int h, int hot_x, int hot_y)
Uint32 SDL_GetRelativeMouseState(int *x, int *y)
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor().
struct SDL_Cursor SDL_Cursor
SDL_Cursor * SDL_GetDefaultCursor(void)
void SDL_SetCursor(SDL_Cursor *cursor)
struct SDL_Window SDL_Window
The type used to identify a window.
void SDL_FreeCursor(SDL_Cursor *cursor)
Uint32 SDL_GetMouseState(int *x, int *y)
int SDL_ShowCursor(int toggle)
Uint32 SDL_GetGlobalMouseState(int *x, int *y)
SDL_MouseWheelDirection
Scroll direction types for the Scroll event.
SDL_Cursor * SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
int SDL_SetRelativeMouseMode(SDL_bool enabled)