VgaGames4

VgaGames4 - input man-pages

[.. upper level ..]

# vg4->input->mouse_warp()

Set mouse to a position in the window.

SYNTAX
void vg4->input->mouse_warp(int xpos, int ypos)
FUNCTION PARAMETERS

xpos | x-position
ypos | y-position

DESCRIPTION
Set mouse to a position in the window. xpos and ypos must be within the virtual size of the window (see vg4->window->getsize()). If mouse-grabbing is activated, the mouse must be catched in the window. To catch the mouse into the window or release it from the window, if mouse-grabbing is activated, use: [CTRL]+[Backspace]
SEE ALSO
vg4->input->mouse_grabbing() vg4->input->mouse_position()