SDL  2.0
SDL_Mouse Struct Reference

#include <SDL_mouse_c.h>

+ Collaboration diagram for SDL_Mouse:

Data Fields

SDL_Cursor *(* CreateCursor )(SDL_Surface *surface, int hot_x, int hot_y)
 
SDL_Cursor *(* CreateSystemCursor )(SDL_SystemCursor id)
 
int(* ShowCursor )(SDL_Cursor *cursor)
 
void(* MoveCursor )(SDL_Cursor *cursor)
 
void(* FreeCursor )(SDL_Cursor *cursor)
 
void(* WarpMouse )(SDL_Window *window, int x, int y)
 
int(* WarpMouseGlobal )(int x, int y)
 
int(* SetRelativeMouseMode )(SDL_bool enabled)
 
int(* CaptureMouse )(SDL_Window *window)
 
Uint32(* GetGlobalMouseState )(int *x, int *y)
 
SDL_MouseID mouseID
 
SDL_Windowfocus
 
int x
 
int y
 
int xdelta
 
int ydelta
 
int last_x
 
int last_y
 
float accumulated_wheel_x
 
float accumulated_wheel_y
 
Uint32 buttonstate
 
SDL_bool has_position
 
SDL_bool relative_mode
 
SDL_bool relative_mode_warp
 
float normal_speed_scale
 
float relative_speed_scale
 
float scale_accum_x
 
float scale_accum_y
 
SDL_bool touch_mouse_events
 
int num_clickstates
 
SDL_MouseClickStateclickstate
 
SDL_Cursorcursors
 
SDL_Cursordef_cursor
 
SDL_Cursorcur_cursor
 
SDL_bool cursor_shown
 
voiddriverdata
 

Detailed Description

Definition at line 43 of file SDL_mouse_c.h.

Field Documentation

◆ accumulated_wheel_x

float SDL_Mouse::accumulated_wheel_x

Definition at line 83 of file SDL_mouse_c.h.

Referenced by SDL_SendMouseWheel().

◆ accumulated_wheel_y

float SDL_Mouse::accumulated_wheel_y

Definition at line 84 of file SDL_mouse_c.h.

Referenced by SDL_SendMouseWheel().

◆ buttonstate

◆ CaptureMouse

int(* SDL_Mouse::CaptureMouse) (SDL_Window *window)

Definition at line 70 of file SDL_mouse_c.h.

Referenced by SDL_CaptureMouse(), and SDL_MouseQuit().

◆ clickstate

SDL_MouseClickState* SDL_Mouse::clickstate

Definition at line 97 of file SDL_mouse_c.h.

Referenced by GetMouseClickState(), and SDL_MouseQuit().

◆ CreateCursor

SDL_Cursor*(* SDL_Mouse::CreateCursor) (SDL_Surface *surface, int hot_x, int hot_y)

Definition at line 46 of file SDL_mouse_c.h.

Referenced by SDL_CreateColorCursor().

◆ CreateSystemCursor

SDL_Cursor*(* SDL_Mouse::CreateSystemCursor) (SDL_SystemCursor id)

Definition at line 49 of file SDL_mouse_c.h.

Referenced by SDL_CreateSystemCursor().

◆ cur_cursor

SDL_Cursor* SDL_Mouse::cur_cursor

◆ cursor_shown

SDL_bool SDL_Mouse::cursor_shown

◆ cursors

SDL_Cursor* SDL_Mouse::cursors

◆ def_cursor

SDL_Cursor* SDL_Mouse::def_cursor

◆ driverdata

void* SDL_Mouse::driverdata

Definition at line 105 of file SDL_mouse_c.h.

◆ focus

◆ FreeCursor

void(* SDL_Mouse::FreeCursor) (SDL_Cursor *cursor)

Definition at line 58 of file SDL_mouse_c.h.

Referenced by SDL_FreeCursor(), and SDL_MouseQuit().

◆ GetGlobalMouseState

Uint32(* SDL_Mouse::GetGlobalMouseState) (int *x, int *y)

Definition at line 73 of file SDL_mouse_c.h.

Referenced by SDL_GetGlobalMouseState().

◆ has_position

SDL_bool SDL_Mouse::has_position

Definition at line 86 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetMouseFocus().

◆ last_x

int SDL_Mouse::last_x

Definition at line 82 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion().

◆ last_y

int SDL_Mouse::last_y

Definition at line 82 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion().

◆ mouseID

SDL_MouseID SDL_Mouse::mouseID

Definition at line 76 of file SDL_mouse_c.h.

Referenced by SDL_GetMouseFocus(), SDL_UpdateMouseFocus(), and SDL_WarpMouseInWindow().

◆ MoveCursor

void(* SDL_Mouse::MoveCursor) (SDL_Cursor *cursor)

Definition at line 55 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion().

◆ normal_speed_scale

float SDL_Mouse::normal_speed_scale

Definition at line 89 of file SDL_mouse_c.h.

Referenced by SDL_MouseNormalSpeedScaleChanged(), and SDL_PrivateSendMouseMotion().

◆ num_clickstates

int SDL_Mouse::num_clickstates

Definition at line 96 of file SDL_mouse_c.h.

Referenced by GetMouseClickState().

◆ relative_mode

◆ relative_mode_warp

SDL_bool SDL_Mouse::relative_mode_warp

Definition at line 88 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetRelativeMouseMode().

◆ relative_speed_scale

float SDL_Mouse::relative_speed_scale

Definition at line 90 of file SDL_mouse_c.h.

Referenced by SDL_MouseRelativeSpeedScaleChanged(), and SDL_PrivateSendMouseMotion().

◆ scale_accum_x

float SDL_Mouse::scale_accum_x

Definition at line 91 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetRelativeMouseMode().

◆ scale_accum_y

float SDL_Mouse::scale_accum_y

Definition at line 92 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetRelativeMouseMode().

◆ SetRelativeMouseMode

int(* SDL_Mouse::SetRelativeMouseMode) (SDL_bool enabled)

Definition at line 67 of file SDL_mouse_c.h.

Referenced by SDL_SetRelativeMouseMode(), and ShouldUseRelativeModeWarp().

◆ ShowCursor

int(* SDL_Mouse::ShowCursor) (SDL_Cursor *cursor)

Definition at line 52 of file SDL_mouse_c.h.

Referenced by SDL_SetCursor().

◆ touch_mouse_events

SDL_bool SDL_Mouse::touch_mouse_events

◆ WarpMouse

void(* SDL_Mouse::WarpMouse) (SDL_Window *window, int x, int y)

Definition at line 61 of file SDL_mouse_c.h.

Referenced by SDL_WarpMouseInWindow().

◆ WarpMouseGlobal

int(* SDL_Mouse::WarpMouseGlobal) (int x, int y)

Definition at line 64 of file SDL_mouse_c.h.

Referenced by SDL_WarpMouseGlobal().

◆ x

◆ xdelta

int SDL_Mouse::xdelta

Definition at line 80 of file SDL_mouse_c.h.

Referenced by SDL_GetRelativeMouseState(), and SDL_PrivateSendMouseMotion().

◆ y

◆ ydelta

int SDL_Mouse::ydelta

Definition at line 81 of file SDL_mouse_c.h.

Referenced by SDL_GetRelativeMouseState(), and SDL_PrivateSendMouseMotion().


The documentation for this struct was generated from the following file: