Function fermium::mouse::SDL_WarpMouseInWindow
source · pub unsafe extern "C" fn SDL_WarpMouseInWindow(
window: *mut SDL_Window,
x: c_int,
y: c_int
)
Expand description
Moves the mouse to the given position within the window.
window
The window to move the mouse into, or NULL for the current mouse focusx
The x coordinate within the windowy
The y coordinate within the window
Note: This function generates a mouse motion event