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_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 178 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_SendTouch(), SDL_SendTouchMotion(), 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 135 of file SDL_mouse.c.
References SDL_Mouse::cursor_shown, SDL_AddHintCallback, SDL_FALSE, SDL_GetMouse(), SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS, SDL_HINT_MOUSE_DOUBLE_CLICK_TIME, SDL_HINT_MOUSE_NORMAL_SPEED_SCALE, SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE, SDL_HINT_MOUSE_TOUCH_EVENTS, SDL_HINT_TOUCH_MOUSE_EVENTS, SDL_MouseDoubleClickRadiusChanged(), SDL_MouseDoubleClickTimeChanged(), SDL_MouseNormalSpeedScaleChanged(), SDL_MouseRelativeSpeedScaleChanged(), SDL_MouseTouchEventsChanged(), SDL_TouchMouseEventsChanged(), SDL_TRUE, SDL_zerop, and SDL_Mouse::was_touch_mouse_events.
Referenced by SDL_VideoInit().
Definition at line 665 of file SDL_mouse.c.
References SDL_Mouse::CaptureMouse, SDL_Mouse::clickstate, SDL_Mouse::cur_cursor, 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 605 of file SDL_mouse.c.
References SDL_PrivateSendMouseButton().
Referenced by SDL_BApp::_HandleMouseButton(), SDL_GetMouseFocus(), and SDL_SendTouch().
int SDL_SendMouseButtonClicks | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
Uint8 | state, | ||
Uint8 | button, | ||
int | clicks | ||
) |
Definition at line 598 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 301 of file SDL_mouse.c.
References SDL_Mouse::buttonstate, SDL_FALSE, SDL_GetMouse(), SDL_PrivateSendMouseMotion(), SDL_TOUCH_MOUSEID, SDL_TRUE, and SDL_UpdateMouseFocus().
Referenced by SDL_BApp::_HandleMouseMove(), IsSDLWindowEventPending(), SDL_SendTouch(), SDL_SendTouchMotion(), and SDL_WarpMouseInWindow().
int SDL_SendMouseWheel | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
float | x, | ||
float | y, | ||
SDL_MouseWheelDirection | direction | ||
) |
Definition at line 611 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 167 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 211 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().