DOKK / manpages / debian 12 / allegro4-doc / position_mouse.3alleg4.en
position_mouse(3alleg4) Allegro manual position_mouse(3alleg4)

position_mouse - Moves the mouse to the specified screen position. Allegro game programming library.

#include <allegro.h>

void position_mouse(int x, int y);

Moves the mouse to the specified screen position. It is safe to call even when a mouse pointer is being displayed.

install_mouse(3alleg4), position_mouse_z(3alleg4), set_mouse_range(3alleg4), set_mouse_speed(3alleg4), position_mouse_w(3alleg4)

version 4.4.3 Allegro