Example #1
0
// Set the current position of the mouse
// This function sets the current position of the mouse
// cursor relative to the given window.
func SetMousePosition(x, y int, win Window) {
	// void sfMouse_setPosition(sfVector2i position, const sfWindow* relativeTo);
	v := C.sfVector2i{C.int(x), C.int(y)}
	C.sfMouse_setPosition(v, win.Cref)
}
Example #2
0
func SetMousePosition(x, y int, win Window) {
	v := C.sfVector2i{C.int(x), C.int(y)}
	C.sfMouse_setPosition(v, win.Cref)
}
Example #3
0
// Set the current position of the mouse.
// This function sets the current position of the mouse
// cursor relative to the desktop.
func SetMousePositionAbsolute(x, y int) {
	// void sfMouse_setPosition(sfVector2i position, const sfWindow* relativeTo);
	v := C.sfVector2i{C.int(x), C.int(y)}
	C.sfMouse_setPosition(v, nil)
}
Example #4
0
// Set the current position of the mouse
// This function sets the current position of the mouse
// cursor relative to the given window, or desktop if NULL is passed.
// \param position   New position of the mouse
// \param relativeTo Reference window
// void sfMouse_setPosition(sfVector2i position, const sfWindow* relativeTo);
func SetMousePositionAbsolute(x, y int) {
	v := C.sfVector2i{C.int(x), C.int(y)}
	C.sfMouse_setPosition(v, nil)
}