SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | SDL_Cursor |
struct | SDL_MouseClickState |
struct | SDL_Mouse |
Typedefs | |
typedef Uint32 | SDL_MouseID |
Functions | |
int | SDL_MouseInit (void) |
SDL_Mouse * | SDL_GetMouse (void) |
void | SDL_SetDoubleClickTime (Uint32 interval) |
void | SDL_SetDefaultCursor (SDL_Cursor *cursor) |
void | SDL_SetMouseFocus (SDL_Window *window) |
int | SDL_SendMouseMotion (SDL_Window *window, SDL_MouseID mouseID, int relative, int x, int y) |
int | SDL_SendMouseButton (SDL_Window *window, SDL_MouseID mouseID, Uint8 state, Uint8 button) |
int | SDL_SendMouseButtonClicks (SDL_Window *window, SDL_MouseID mouseID, Uint8 state, Uint8 button, int clicks) |
int | SDL_SendMouseWheel (SDL_Window *window, SDL_MouseID mouseID, float x, float y, SDL_MouseWheelDirection direction) |
void | SDL_MouseQuit (void) |
typedef Uint32 SDL_MouseID |
Definition at line 28 of file SDL_mouse_c.h.
Definition at line 112 of file SDL_mouse.c.
References SDL_mouse.
Referenced by SDL_CaptureMouse(), SDL_CreateColorCursor(), SDL_CreateSystemCursor(), SDL_FreeCursor(), SDL_GetCursor(), SDL_GetDefaultCursor(), SDL_GetGlobalMouseState(), SDL_GetMouseFocus(), SDL_GetMouseState(), SDL_GetRelativeMouseMode(), SDL_GetRelativeMouseState(), SDL_MouseInit(), SDL_MouseQuit(), SDL_OnWindowFocusGained(), SDL_PrivateSendMouseButton(), SDL_PrivateSendMouseMotion(), SDL_SendMouseMotion(), SDL_SendMouseWheel(), SDL_SetCursor(), SDL_SetDefaultCursor(), SDL_SetMouseFocus(), SDL_SetRelativeMouseMode(), SDL_ShowCursor(), SDL_UpdateMouseFocus(), SDL_UpdateWindowGrab(), SDL_WarpMouseGlobal(), and SDL_WarpMouseInWindow().
int SDL_MouseInit | ( | void | ) |
Definition at line 80 of file SDL_mouse.c.
References SDL_Mouse::cursor_shown, SDL_AddHintCallback, SDL_GetMouse(), SDL_HINT_MOUSE_NORMAL_SPEED_SCALE, SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE, SDL_HINT_TOUCH_MOUSE_EVENTS, SDL_MouseNormalSpeedScaleChanged(), SDL_MouseRelativeSpeedScaleChanged(), SDL_TouchMouseEventsChanged(), SDL_TRUE, and SDL_zerop.
Referenced by SDL_VideoInit().
Definition at line 566 of file SDL_mouse.c.
References SDL_Mouse::CaptureMouse, SDL_Mouse::clickstate, cursor, SDL_Mouse::cursors, SDL_Mouse::def_cursor, SDL_Mouse::FreeCursor, SDL_Cursor::next, NULL, SDL_CaptureMouse(), SDL_DelHintCallback, SDL_FALSE, SDL_free, SDL_FreeCursor(), SDL_GetMouse(), SDL_HINT_MOUSE_NORMAL_SPEED_SCALE, SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE, SDL_MouseNormalSpeedScaleChanged(), SDL_MouseRelativeSpeedScaleChanged(), SDL_SetRelativeMouseMode(), and SDL_ShowCursor().
Referenced by SDL_VideoQuit().
int SDL_SendMouseButton | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
Uint8 | state, | ||
Uint8 | button | ||
) |
Definition at line 506 of file SDL_mouse.c.
References SDL_PrivateSendMouseButton().
Referenced by SDL_BApp::_HandleMouseButton(), and SDL_GetMouseFocus().
int SDL_SendMouseButtonClicks | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
Uint8 | state, | ||
Uint8 | button, | ||
int | clicks | ||
) |
Definition at line 499 of file SDL_mouse.c.
References SDL_max, and SDL_PrivateSendMouseButton().
int SDL_SendMouseMotion | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
int | relative, | ||
int | x, | ||
int | y | ||
) |
Definition at line 237 of file SDL_mouse.c.
References SDL_Mouse::buttonstate, SDL_GetMouse(), SDL_PrivateSendMouseMotion(), and SDL_UpdateMouseFocus().
Referenced by SDL_BApp::_HandleMouseMove(), IsSDLWindowEventPending(), and SDL_WarpMouseInWindow().
int SDL_SendMouseWheel | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
float | x, | ||
float | y, | ||
SDL_MouseWheelDirection | direction | ||
) |
Definition at line 512 of file SDL_mouse.c.
References SDL_Mouse::accumulated_wheel_x, SDL_Mouse::accumulated_wheel_y, SDL_Mouse::focus, SDL_Window::id, SDL_ceil, SDL_ENABLE, SDL_floor, SDL_GetEventState, SDL_GetMouse(), SDL_MOUSEWHEEL, SDL_PushEvent, and SDL_SetMouseFocus().
Referenced by SDL_BApp::_HandleMouseWheel().
void SDL_SetDefaultCursor | ( | SDL_Cursor * | cursor | ) |
Definition at line 101 of file SDL_mouse.c.
References SDL_Mouse::cur_cursor, cursor, SDL_Mouse::def_cursor, SDL_GetMouse(), and SDL_SetCursor().
void SDL_SetMouseFocus | ( | SDL_Window * | window | ) |
Definition at line 151 of file SDL_mouse.c.
References SDL_Mouse::focus, SDL_Mouse::has_position, NULL, SDL_FALSE, SDL_GetMouse(), SDL_SendWindowEvent(), SDL_SetCursor(), SDL_WINDOWEVENT_ENTER, and SDL_WINDOWEVENT_LEAVE.
Referenced by SDL_BApp::_HandleMouseFocus(), SDL_DestroyWindow(), SDL_OnWindowFocusGained(), SDL_SendMouseWheel(), SDL_SetRelativeMouseMode(), and SDL_UpdateMouseFocus().