bool al_set_mouse_xy(ALLEGRO_DISPLAY *display, int x, int y)
Introduced in 5.0.0

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 event.

Returns true on success, false on failure.

See also: al_set_mouse_z, al_set_mouse_w

Examples: ex_ogre3d, ex_warp_mouse

Most helpful discussions:

Other recent discussions: