al_set_mouse_xy(3)

al_set_mouse_xy3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
bool al_set_mouse_xy(ALLEGRO_DISPLAY *display, int x, int y)

Overview

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.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.