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
 
Uint32 double_click_time
 
int double_click_radius
 
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

float SDL_Mouse::accumulated_wheel_x

Definition at line 83 of file SDL_mouse_c.h.

Referenced by SDL_SendMouseWheel().

float SDL_Mouse::accumulated_wheel_y

Definition at line 84 of file SDL_mouse_c.h.

Referenced by SDL_SendMouseWheel().

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

Definition at line 70 of file SDL_mouse_c.h.

Referenced by SDL_CaptureMouse(), and SDL_MouseQuit().

SDL_MouseClickState* SDL_Mouse::clickstate

Definition at line 99 of file SDL_mouse_c.h.

Referenced by GetMouseClickState(), and SDL_MouseQuit().

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().

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

Definition at line 49 of file SDL_mouse_c.h.

Referenced by SDL_CreateSystemCursor().

SDL_Cursor* SDL_Mouse::cur_cursor
SDL_bool SDL_Mouse::cursor_shown
SDL_Cursor* SDL_Mouse::cursors
SDL_Cursor* SDL_Mouse::def_cursor
int SDL_Mouse::double_click_radius

Definition at line 94 of file SDL_mouse_c.h.

Referenced by SDL_MouseDoubleClickRadiusChanged(), and SDL_PrivateSendMouseButton().

Uint32 SDL_Mouse::double_click_time

Definition at line 93 of file SDL_mouse_c.h.

Referenced by SDL_MouseDoubleClickTimeChanged(), and SDL_PrivateSendMouseButton().

void* SDL_Mouse::driverdata

Definition at line 107 of file SDL_mouse_c.h.

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

Definition at line 58 of file SDL_mouse_c.h.

Referenced by SDL_FreeCursor(), and SDL_MouseQuit().

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

Definition at line 73 of file SDL_mouse_c.h.

Referenced by SDL_GetGlobalMouseState().

SDL_bool SDL_Mouse::has_position

Definition at line 86 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetMouseFocus().

int SDL_Mouse::last_x

Definition at line 82 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion().

int SDL_Mouse::last_y

Definition at line 82 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion().

SDL_MouseID SDL_Mouse::mouseID

Definition at line 76 of file SDL_mouse_c.h.

Referenced by SDL_UpdateMouseFocus(), and SDL_WarpMouseInWindow().

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

Definition at line 55 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion().

float SDL_Mouse::normal_speed_scale

Definition at line 89 of file SDL_mouse_c.h.

Referenced by SDL_MouseNormalSpeedScaleChanged(), and SDL_PrivateSendMouseMotion().

int SDL_Mouse::num_clickstates

Definition at line 98 of file SDL_mouse_c.h.

Referenced by GetMouseClickState().

SDL_bool SDL_Mouse::relative_mode_warp

Definition at line 88 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetRelativeMouseMode().

float SDL_Mouse::relative_speed_scale

Definition at line 90 of file SDL_mouse_c.h.

Referenced by SDL_MouseRelativeSpeedScaleChanged(), and SDL_PrivateSendMouseMotion().

float SDL_Mouse::scale_accum_x

Definition at line 91 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetRelativeMouseMode().

float SDL_Mouse::scale_accum_y

Definition at line 92 of file SDL_mouse_c.h.

Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetRelativeMouseMode().

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

Definition at line 67 of file SDL_mouse_c.h.

Referenced by SDL_SetRelativeMouseMode(), and ShouldUseRelativeModeWarp().

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

Definition at line 52 of file SDL_mouse_c.h.

Referenced by SDL_SetCursor().

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

Definition at line 64 of file SDL_mouse_c.h.

Referenced by SDL_WarpMouseGlobal().

int SDL_Mouse::xdelta

Definition at line 80 of file SDL_mouse_c.h.

Referenced by SDL_GetRelativeMouseState(), and SDL_PrivateSendMouseMotion().

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: