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_SendMouseWheel (SDL_Window *window, SDL_MouseID mouseID, int x, int 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 66 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_PrivateSendMouseMotion(), SDL_ResetMouse(), SDL_SendMouseButton(), 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 45 of file SDL_mouse.c.
References SDL_Mouse::cursor_shown, SDL_GetMouse(), and SDL_TRUE.
Referenced by SDL_VideoInit().
Definition at line 435 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, SDL_CaptureMouse(), SDL_FALSE, SDL_free(), SDL_FreeCursor(), SDL_GetMouse(), SDL_SetRelativeMouseMode(), SDL_ShowCursor(), and SDL_zerop.
Referenced by SDL_VideoQuit().
int SDL_SendMouseButton | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
Uint8 | state, | ||
Uint8 | button | ||
) |
Definition at line 326 of file SDL_mouse.c.
References button, SDL_Mouse::buttonstate, SDL_MouseClickState::click_count, SDL_Mouse::focus, GetMouseClickState(), SDL_Window::id, SDL_MouseClickState::last_timestamp, SDL_MouseClickState::last_x, SDL_MouseClickState::last_y, SDL_abs, SDL_BUTTON, SDL_double_click_radius, SDL_double_click_time, SDL_ENABLE, SDL_GetEventState, SDL_GetMouse(), SDL_GetTicks(), SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP, SDL_PRESSED, SDL_PushEvent, SDL_RELEASED, SDL_TICKS_PASSED, SDL_UpdateMouseFocus(), state, SDL_Mouse::x, and SDL_Mouse::y.
Referenced by SDL_BApp::_HandleMouseButton(), and SDL_ResetMouse().
int SDL_SendMouseMotion | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
int | relative, | ||
int | x, | ||
int | y | ||
) |
Definition at line 188 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, | ||
int | x, | ||
int | y, | ||
SDL_MouseWheelDirection | direction | ||
) |
Definition at line 406 of file SDL_mouse.c.
References SDL_Mouse::focus, SDL_Window::id, SDL_ENABLE, 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 55 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 103 of file SDL_mouse.c.
References SDL_Mouse::focus, NULL, SDL_GetMouse(), SDL_ResetMouse(), SDL_SendWindowEvent(), SDL_SetCursor(), SDL_WINDOWEVENT_ENTER, SDL_WINDOWEVENT_LEAVE, and window.
Referenced by SDL_BApp::_HandleMouseFocus(), SDL_DestroyWindow(), SDL_OnWindowFocusGained(), SDL_SendMouseWheel(), SDL_SetRelativeMouseMode(), and SDL_UpdateMouseFocus().