SDL
2.0
|
#include "../SDL_internal.h"
#include "SDL_assert.h"
#include "SDL_hints.h"
#include "SDL_timer.h"
#include "SDL_events.h"
#include "SDL_events_c.h"
#include "../SDL_hints_c.h"
#include "../video/SDL_sysvideo.h"
#include "../core/windows/SDL_windows.h"
Go to the source code of this file.
Functions | |
static int | SDL_PrivateSendMouseMotion (SDL_Window *window, SDL_MouseID mouseID, int relative, int x, int y) |
static void | SDL_MouseDoubleClickTimeChanged (void *userdata, const char *name, const char *oldValue, const char *hint) |
static void | SDL_MouseDoubleClickRadiusChanged (void *userdata, const char *name, const char *oldValue, const char *hint) |
static void | SDL_MouseNormalSpeedScaleChanged (void *userdata, const char *name, const char *oldValue, const char *hint) |
static void | SDL_MouseRelativeSpeedScaleChanged (void *userdata, const char *name, const char *oldValue, const char *hint) |
static void | SDL_TouchMouseEventsChanged (void *userdata, const char *name, const char *oldValue, const char *hint) |
static void | SDL_MouseTouchEventsChanged (void *userdata, const char *name, const char *oldValue, const char *hint) |
int | SDL_MouseInit (void) |
void | SDL_SetDefaultCursor (SDL_Cursor *cursor) |
SDL_Mouse * | SDL_GetMouse (void) |
SDL_Window * | SDL_GetMouseFocus (void) |
Get the window which currently has mouse focus. More... | |
void | SDL_SetMouseFocus (SDL_Window *window) |
static SDL_bool | SDL_UpdateMouseFocus (SDL_Window *window, int x, int y, Uint32 buttonstate, SDL_bool send_mouse_motion) |
int | SDL_SendMouseMotion (SDL_Window *window, SDL_MouseID mouseID, int relative, int x, int y) |
static int | GetScaledMouseDelta (float scale, int value, float *accum) |
static SDL_MouseClickState * | GetMouseClickState (SDL_Mouse *mouse, Uint8 button) |
static int | SDL_PrivateSendMouseButton (SDL_Window *window, SDL_MouseID mouseID, Uint8 state, Uint8 button, int clicks) |
int | SDL_SendMouseButtonClicks (SDL_Window *window, SDL_MouseID mouseID, Uint8 state, Uint8 button, int clicks) |
int | SDL_SendMouseButton (SDL_Window *window, SDL_MouseID mouseID, Uint8 state, Uint8 button) |
int | SDL_SendMouseWheel (SDL_Window *window, SDL_MouseID mouseID, float x, float y, SDL_MouseWheelDirection direction) |
void | SDL_MouseQuit (void) |
Uint32 | SDL_GetMouseState (int *x, int *y) |
Retrieve the current state of the mouse. More... | |
Uint32 | SDL_GetRelativeMouseState (int *x, int *y) |
Retrieve the relative state of the mouse. More... | |
Uint32 | SDL_GetGlobalMouseState (int *x, int *y) |
Get the current state of the mouse, in relation to the desktop. More... | |
void | SDL_WarpMouseInWindow (SDL_Window *window, int x, int y) |
Moves the mouse to the given position within the window. More... | |
int | SDL_WarpMouseGlobal (int x, int y) |
Moves the mouse to the given position in global screen space. More... | |
static SDL_bool | ShouldUseRelativeModeWarp (SDL_Mouse *mouse) |
int | SDL_SetRelativeMouseMode (SDL_bool enabled) |
Set relative mouse mode. More... | |
SDL_bool | SDL_GetRelativeMouseMode () |
Query whether relative mouse mode is enabled. More... | |
int | SDL_CaptureMouse (SDL_bool enabled) |
Capture the mouse, to track input outside an SDL window. More... | |
SDL_Cursor * | SDL_CreateCursor (const Uint8 *data, const Uint8 *mask, int w, int h, int hot_x, int hot_y) |
Create a cursor, using the specified bitmap data and mask (in MSB format). More... | |
SDL_Cursor * | SDL_CreateColorCursor (SDL_Surface *surface, int hot_x, int hot_y) |
Create a color cursor. More... | |
SDL_Cursor * | SDL_CreateSystemCursor (SDL_SystemCursor id) |
Create a system cursor. More... | |
void | SDL_SetCursor (SDL_Cursor *cursor) |
Set the active cursor. More... | |
SDL_Cursor * | SDL_GetCursor (void) |
Return the active cursor. More... | |
SDL_Cursor * | SDL_GetDefaultCursor (void) |
Return the default cursor. More... | |
void | SDL_FreeCursor (SDL_Cursor *cursor) |
Frees a cursor created with SDL_CreateCursor() or similar functions. More... | |
int | SDL_ShowCursor (int toggle) |
Toggle whether or not the cursor is shown. More... | |
Variables | |
static SDL_Mouse | SDL_mouse |
static SDL_bool | track_mouse_down = SDL_FALSE |
|
static |
Definition at line 464 of file SDL_mouse.c.
References button, SDL_Mouse::clickstate, i, NULL, SDL_Mouse::num_clickstates, SDL_realloc, and SDL_zero.
Referenced by SDL_PrivateSendMouseButton().
|
static |
Definition at line 306 of file SDL_mouse.c.
References SDL_ceil, and SDL_floor.
Referenced by SDL_PrivateSendMouseMotion().
int SDL_CaptureMouse | ( | SDL_bool | enabled | ) |
Capture the mouse, to track input outside an SDL window.
enabled | Whether or not to enable capturing |
Capturing enables your app to obtain mouse events globally, instead of just within your window. Not all video targets support this function. When capturing is enabled, the current window will get all mouse events, but unlike relative mode, no change is made to the cursor and it is not restrained to your window.
This function may also deny mouse input to other windows–both those in your application and others on the system–so you should use this function sparingly, and in small bursts. For example, you might want to track the mouse while the user is dragging something, until the user releases a mouse button. It is not recommended that you capture the mouse for long periods of time, such as the entire time your app is running.
While captured, mouse events still report coordinates relative to the current (foreground) window, but those coordinates may be outside the bounds of the window (including negative values). Capturing is only allowed for the foreground window. If the window loses focus while capturing, the capture will be disabled automatically.
While capturing is enabled, the current window will have the SDL_WINDOW_MOUSE_CAPTURE flag set.
Definition at line 850 of file SDL_mouse.c.
References SDL_Mouse::CaptureMouse, SDL_Window::flags, NULL, SDL_GetKeyboardFocus, SDL_GetMouse(), SDL_SetError, SDL_Unsupported, and SDL_WINDOW_MOUSE_CAPTURE.
Referenced by SDL_MouseQuit().
SDL_Cursor* SDL_CreateColorCursor | ( | SDL_Surface * | surface, |
int | hot_x, | ||
int | hot_y | ||
) |
Create a color cursor.
Definition at line 934 of file SDL_mouse.c.
References SDL_Mouse::CreateCursor, cursor, SDL_Mouse::cursors, hot_x, SDL_Cursor::next, NULL, SDL_ConvertSurfaceFormat, SDL_FreeSurface, SDL_GetMouse(), SDL_PIXELFORMAT_ARGB8888, and SDL_SetError.
Referenced by SDL_CreateCursor().
SDL_Cursor* SDL_CreateCursor | ( | const Uint8 * | data, |
const Uint8 * | mask, | ||
int | w, | ||
int | h, | ||
int | hot_x, | ||
int | hot_y | ||
) |
Create a cursor, using the specified bitmap data and mask (in MSB format).
The cursor width must be a multiple of 8 bits.
The cursor is created in black and white according to the following:
data | mask | resulting pixel on screen |
0 | 1 | White |
1 | 1 | Black |
0 | 0 | Transparent |
1 | 0 | Inverted color if possible, black if not. |
Definition at line 885 of file SDL_mouse.c.
References cursor, hot_x, NULL, SDL_CreateColorCursor(), SDL_CreateRGBSurface, and SDL_FreeSurface.
SDL_Cursor* SDL_CreateSystemCursor | ( | SDL_SystemCursor | id | ) |
Create a system cursor.
Definition at line 977 of file SDL_mouse.c.
References SDL_Mouse::CreateSystemCursor, cursor, SDL_Mouse::cursors, SDL_Cursor::next, NULL, SDL_GetMouse(), and SDL_SetError.
void SDL_FreeCursor | ( | SDL_Cursor * | cursor | ) |
Frees a cursor created with SDL_CreateCursor() or similar functions.
Definition at line 1063 of file SDL_mouse.c.
References SDL_Mouse::cur_cursor, cursor, SDL_Mouse::cursors, SDL_Mouse::def_cursor, SDL_Mouse::FreeCursor, SDL_Cursor::next, NULL, SDL_GetMouse(), and SDL_SetCursor().
Referenced by SDL_MouseQuit().
SDL_Cursor* SDL_GetCursor | ( | void | ) |
Return the active cursor.
Definition at line 1041 of file SDL_mouse.c.
References SDL_Mouse::cur_cursor, NULL, and SDL_GetMouse().
SDL_Cursor* SDL_GetDefaultCursor | ( | void | ) |
Return the default cursor.
Definition at line 1052 of file SDL_mouse.c.
References SDL_Mouse::def_cursor, NULL, and SDL_GetMouse().
Uint32 SDL_GetGlobalMouseState | ( | int * | x, |
int * | y | ||
) |
Get the current state of the mouse, in relation to the desktop.
This works just like SDL_GetMouseState(), but the coordinates will be reported relative to the top-left of the desktop. This can be useful if you need to track the mouse outside of a specific window and SDL_CaptureMouse() doesn't fit your needs. For example, it could be useful if you need to track the mouse while dragging a window, where coordinates relative to a window might not be in sync at all times.
x | Returns the current X coord, relative to the desktop. Can be NULL. |
y | Returns the current Y coord, relative to the desktop. Can be NULL. |
Definition at line 722 of file SDL_mouse.c.
References SDL_Mouse::GetGlobalMouseState, and SDL_GetMouse().
Definition at line 170 of file SDL_mouse.c.
References SDL_mouse.
Referenced by SDL_BApp::_HandleMouseMove(), 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().
SDL_Window* SDL_GetMouseFocus | ( | void | ) |
Get the window which currently has mouse focus.
Definition at line 176 of file SDL_mouse.c.
References SDL_Mouse::focus, and SDL_GetMouse().
Uint32 SDL_GetMouseState | ( | int * | x, |
int * | y | ||
) |
Retrieve the current state of the mouse.
The current button state is returned as a button bitmask, which can be tested using the SDL_BUTTON(X) macros, and x and y are set to the mouse cursor position relative to the focus window for the currently selected mouse. You can pass NULL for either x or y.
Definition at line 692 of file SDL_mouse.c.
References SDL_Mouse::buttonstate, SDL_GetMouse(), SDL_Mouse::x, and SDL_Mouse::y.
Query whether relative mouse mode is enabled.
Definition at line 842 of file SDL_mouse.c.
References SDL_Mouse::relative_mode, and SDL_GetMouse().
Uint32 SDL_GetRelativeMouseState | ( | int * | x, |
int * | y | ||
) |
Retrieve the relative state of the mouse.
The current button state is returned as a button bitmask, which can be tested using the SDL_BUTTON(X) macros, and x and y are set to the mouse deltas since the last call to SDL_GetRelativeMouseState().
Definition at line 706 of file SDL_mouse.c.
References SDL_Mouse::buttonstate, SDL_GetMouse(), SDL_Mouse::xdelta, and SDL_Mouse::ydelta.
|
static |
Definition at line 64 of file SDL_mouse.c.
References SDL_Mouse::double_click_radius, and SDL_atoi.
Referenced by SDL_MouseInit().
|
static |
Definition at line 48 of file SDL_mouse.c.
References SDL_Mouse::double_click_time, and SDL_atoi.
Referenced by SDL_MouseInit().
int SDL_MouseInit | ( | void | ) |
Definition at line 127 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().
|
static |
Definition at line 76 of file SDL_mouse.c.
References SDL_Mouse::normal_speed_scale, and SDL_atof.
Referenced by SDL_MouseInit(), and SDL_MouseQuit().
Definition at line 654 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().
|
static |
Definition at line 88 of file SDL_mouse.c.
References SDL_Mouse::relative_speed_scale, and SDL_atof.
Referenced by SDL_MouseInit(), and SDL_MouseQuit().
|
static |
Definition at line 108 of file SDL_mouse.c.
References SDL_Mouse::mouse_touch_events, SDL_AddTouch(), SDL_FALSE, SDL_GetStringBoolean(), SDL_MOUSE_TOUCHID, SDL_TOUCH_DEVICE_DIRECT, and SDL_TRUE.
Referenced by SDL_MouseInit().
|
static |
Definition at line 483 of file SDL_mouse.c.
References button, SDL_Mouse::buttonstate, SDL_MouseClickState::click_count, SDL_Mouse::double_click_radius, SDL_Mouse::double_click_time, SDL_Mouse::focus, GetMouseClickState(), SDL_Window::id, SDL_MouseClickState::last_timestamp, SDL_MouseClickState::last_x, SDL_MouseClickState::last_y, SDL_Mouse::mouse_touch_events, SDL_abs, SDL_BUTTON, SDL_BUTTON_LEFT, SDL_ENABLE, SDL_FALSE, SDL_GetEventState, SDL_GetMouse(), SDL_GetTicks(), SDL_min, SDL_MOUSE_TOUCHID, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP, SDL_PRESSED, SDL_PushEvent, SDL_RELEASED, SDL_SendTouch(), SDL_TICKS_PASSED, SDL_TOUCH_MOUSEID, SDL_TRUE, SDL_UpdateMouseFocus(), state, SDL_Mouse::touch_mouse_events, track_mouse_down, SDL_Mouse::x, and SDL_Mouse::y.
Referenced by SDL_SendMouseButton(), and SDL_SendMouseButtonClicks().
|
static |
Definition at line 321 of file SDL_mouse.c.
References SDL_Mouse::buttonstate, SDL_Mouse::cur_cursor, SDL_Mouse::cursor_shown, SDL_Mouse::focus, GetScaledMouseDelta(), SDL_Mouse::has_position, SDL_Window::id, SDL_Mouse::last_x, SDL_Mouse::last_y, SDL_Mouse::mouse_touch_events, SDL_Mouse::MoveCursor, SDL_Mouse::normal_speed_scale, SDL_Mouse::relative_mode, SDL_Mouse::relative_mode_warp, SDL_Mouse::relative_speed_scale, SDL_Mouse::scale_accum_x, SDL_Mouse::scale_accum_y, SDL_ENABLE, SDL_FALSE, SDL_GetEventState, SDL_GetMouse(), SDL_GetWindowSize, SDL_MOUSE_TOUCHID, SDL_MOUSEMOTION, SDL_PushEvent, SDL_SendTouchMotion(), SDL_TOUCH_MOUSEID, SDL_TRUE, SDL_WarpMouseInWindow(), SDL_WINDOW_MOUSE_CAPTURE, SDL_Mouse::touch_mouse_events, track_mouse_down, SDL_Mouse::was_touch_mouse_events, SDL_Mouse::x, SDL_Mouse::xdelta, SDL_Mouse::y, and SDL_Mouse::ydelta.
Referenced by SDL_SendMouseMotion(), and SDL_UpdateMouseFocus().
int SDL_SendMouseButton | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
Uint8 | state, | ||
Uint8 | button | ||
) |
Definition at line 594 of file SDL_mouse.c.
References button, SDL_PrivateSendMouseButton(), and state.
Referenced by SDL_BApp::_HandleMouseButton(), and SDL_SendTouch().
int SDL_SendMouseButtonClicks | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
Uint8 | state, | ||
Uint8 | button, | ||
int | clicks | ||
) |
Definition at line 587 of file SDL_mouse.c.
References button, SDL_max, SDL_PrivateSendMouseButton(), and state.
int SDL_SendMouseMotion | ( | SDL_Window * | window, |
SDL_MouseID | mouseID, | ||
int | relative, | ||
int | x, | ||
int | y | ||
) |
Definition at line 293 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(), 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 600 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_SetCursor | ( | SDL_Cursor * | cursor | ) |
Set the active cursor.
Definition at line 1001 of file SDL_mouse.c.
References SDL_Mouse::cur_cursor, cursor, SDL_Mouse::cursor_shown, SDL_Mouse::cursors, SDL_Mouse::def_cursor, SDL_Mouse::focus, SDL_Cursor::next, NULL, SDL_Mouse::relative_mode, SDL_GetMouse(), SDL_SetError, and SDL_Mouse::ShowCursor.
Referenced by SDL_FreeCursor(), SDL_SetDefaultCursor(), SDL_SetMouseFocus(), SDL_SetRelativeMouseMode(), and SDL_ShowCursor().
void SDL_SetDefaultCursor | ( | SDL_Cursor * | cursor | ) |
Definition at line 159 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 203 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().
int SDL_SetRelativeMouseMode | ( | SDL_bool | enabled | ) |
Set relative mouse mode.
enabled | Whether or not to enable relative mode |
While the mouse is in relative mode, the cursor is hidden, and the driver will try to report continuous motion in the current window. Only relative motion events will be delivered, the mouse position will not change.
Definition at line 788 of file SDL_mouse.c.
References SDL_Mouse::focus, SDL_Window::h, NULL, SDL_Mouse::relative_mode, SDL_Mouse::relative_mode_warp, SDL_Mouse::scale_accum_x, SDL_Mouse::scale_accum_y, SDL_FALSE, SDL_FlushEvent, SDL_GetKeyboardFocus, SDL_GetMouse(), SDL_MOUSEMOTION, SDL_SetCursor(), SDL_SetError, SDL_SetMouseFocus(), SDL_TRUE, SDL_UpdateWindowGrab(), SDL_WarpMouseInWindow(), SDL_Mouse::SetRelativeMouseMode, ShouldUseRelativeModeWarp(), SDL_Window::w, SDL_Mouse::WarpMouse, SDL_Mouse::x, and SDL_Mouse::y.
Referenced by SDL_MouseQuit().
int SDL_ShowCursor | ( | int | toggle | ) |
Toggle whether or not the cursor is shown.
toggle | 1 to show the cursor, 0 to hide it, -1 to query the current state. |
Definition at line 1097 of file SDL_mouse.c.
References SDL_Mouse::cursor_shown, NULL, SDL_FALSE, SDL_GetMouse(), SDL_SetCursor(), and SDL_TRUE.
Referenced by SDL_MouseQuit().
|
static |
Definition at line 100 of file SDL_mouse.c.
References SDL_GetStringBoolean(), SDL_TRUE, and SDL_Mouse::touch_mouse_events.
Referenced by SDL_MouseInit().
|
static |
Definition at line 241 of file SDL_mouse.c.
References SDL_Mouse::focus, SDL_Mouse::mouseID, NULL, SDL_FALSE, SDL_GetMouse(), SDL_GetWindowSize, SDL_PrivateSendMouseMotion(), SDL_SetMouseFocus(), SDL_TRUE, and SDL_WINDOW_MOUSE_CAPTURE.
Referenced by SDL_PrivateSendMouseButton(), and SDL_SendMouseMotion().
int SDL_WarpMouseGlobal | ( | int | x, |
int | y | ||
) |
Moves the mouse to the given position in global screen space.
x | The x coordinate |
y | The y coordinate |
Definition at line 765 of file SDL_mouse.c.
References SDL_GetMouse(), SDL_Unsupported, and SDL_Mouse::WarpMouseGlobal.
void SDL_WarpMouseInWindow | ( | SDL_Window * | window, |
int | x, | ||
int | y | ||
) |
Moves the mouse to the given position within the window.
window | The window to move the mouse into, or NULL for the current mouse focus |
x | The x coordinate within the window |
y | The y coordinate within the window |
Definition at line 745 of file SDL_mouse.c.
References SDL_Mouse::focus, SDL_Mouse::mouseID, NULL, SDL_GetMouse(), SDL_SendMouseMotion(), and SDL_Mouse::WarpMouse.
Referenced by SDL_PrivateSendMouseMotion(), and SDL_SetRelativeMouseMode().
Definition at line 777 of file SDL_mouse.c.
References SDL_FALSE, SDL_GetHintBoolean, SDL_HINT_MOUSE_RELATIVE_MODE_WARP, and SDL_Mouse::WarpMouse.
Referenced by SDL_SetRelativeMouseMode().
|
static |
Definition at line 39 of file SDL_mouse.c.
Referenced by SDL_GetMouse().
Definition at line 42 of file SDL_mouse.c.
Referenced by SDL_PrivateSendMouseButton(), and SDL_PrivateSendMouseMotion().