al_set_mouse_xy - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro.h>

bool al_set_mouse_xy(ALLEGRO_DISPLAY *display, int x, int y)

Description

Try to position the mouse at the given coordinates on the given display. The mouse movement resulting from a successful move will generate an ALLEGRO_EVENT_MOUSE_WARPED(3) event.

Returns true on success, false on failure.

See Also

al_set_mouse_z(3), al_set_mouse_w(3)

Referenced By

ALLEGRO_EVENT(3), al_set_mouse_axis(3).

Allegro reference manual