warpMouse method

void warpMouse(
  1. int x,
  2. int y
)

Move the mouse cursor to the given position within the window.

SDL Docs

Implementation

void warpMouse(final int x, final int y) =>
    sdl.sdl.SDL_WarpMouseInWindow(handle, x, y);