---
name: "al_set_mouse_cursor"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_mouse_cursor"
---

# al\_set\_mouse\_cursor(3)

Allegro 5 API

## NAME

al\_set\_mouse\_cursor - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_set_mouse_cursor(ALLEGRO_DISPLAY *display, ALLEGRO_MOUSE_CURSOR *cursor)
  ```

## DESCRIPTION

Set the given mouse cursor to be the current mouse cursor for the given display.

If the cursor is currently \`shown' (as opposed to \`hidden') the change is immediately visible.

Returns true on success, false on failure.

## SEE ALSO

[al\_set\_system\_mouse\_cursor(3)](/al_set_system_mouse_cursor/3.md), [al\_show\_mouse\_cursor(3)](/al_show_mouse_cursor/3.md), [al\_hide\_mouse\_cursor(3)](/al_hide_mouse_cursor/3.md)
