Ejemplo n.º 1
0
/**
 *  \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))
}
Ejemplo n.º 2
0
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)
}
Ejemplo n.º 3
0
func (w *Window) WarpMouse(x, y int) {
	C.SDL_WarpMouseInWindow(w.c, C.int(x), C.int(y))
}
Ejemplo n.º 4
0
// 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))
}
Ejemplo n.º 5
0
func WarpMouse(x, y int) {
	C.SDL_WarpMouseInWindow(nil, C.int(x), C.int(y))
}