---
name: "disable_hardware_cursor"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/disable_hardware_cursor/3alleg4"
---

# disable\_hardware\_cursor(3alleg4)

Disables the OS hardware cursor. Allegro game programming library.

## NAME

disable\_hardware\_cursor - Disables the OS hardware cursor. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void disable\_hardware\_cursor(void);**

## DESCRIPTION

After calling this function, Allegro will be responsible for drawing the mouse cursor rather than the operating system. On some platforms calling enable\_hardware\_cursor() makes the return values of get\_mouse\_mickeys() unreliable. After calling this function, get\_mouse\_mickeys() returns  reliable results again.

## SEE ALSO

**install\_mouse**(3alleg4), **show\_mouse**(3alleg4), **set\_mouse\_sprite**(3alleg4), **get\_mouse\_mickeys**(3alleg4), **gfx\_capabilities**(3alleg4), **enable\_hardware\_cursor**(3alleg4)
