[][src]Function fermium::mouse::SDL_WarpMouseGlobal

pub unsafe extern "C" fn SDL_WarpMouseGlobal(x: c_int, y: c_int) -> c_int

Moves the mouse to the given position in global screen space.

  • x The x coordinate
  • y The y coordinate

Returns: 0 on success, -1 on error (usually: unsupported by a platform).

Note: This function generates a mouse motion event