// 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) }
func SetMousePosition(x, y int, win Window) { v := C.sfVector2i{C.int(x), C.int(y)} C.sfMouse_setPosition(v, win.Cref) }
// 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) }
// 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) }