/** * \brief Moves the mouse to the given position within the window. * * \param window The window to move the mouse into, or NULL for the current mouse focus * \param x The x coordinate within the window * \param y The y coordinate within the window * * \note This function generates a mouse motion event */ func WarpMouseInWindow(window *Window, x int, y int) { C.SDL_WarpMouseInWindow(window.cWindow, C.int(x), C.int(y)) }
func (window *Window) WarpMouseInWindow(x, y int) { _window := (*C.SDL_Window)(unsafe.Pointer(window)) _x := (C.int)(x) _y := (C.int)(y) C.SDL_WarpMouseInWindow(_window, _x, _y) }
func (w *Window) WarpMouse(x, y int) { C.SDL_WarpMouseInWindow(w.c, C.int(x), C.int(y)) }
// Window (https://wiki.libsdl.org/SDL_WarpMouseInWindow) func (window *Window) WarpMouseInWindow(x, y int) { C.SDL_WarpMouseInWindow(window.cptr(), C.int(x), C.int(y)) }
func WarpMouse(x, y int) { C.SDL_WarpMouseInWindow(nil, C.int(x), C.int(y)) }