---
name: "disable_hardware_cursor"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/disable_hardware_cursor"
---

# disable\_hardware\_cursor(3alleg)

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**(3alleg)](/install_mouse/3alleg.md), [**show\_mouse**(3alleg)](/show_mouse/3alleg.md), [**set\_mouse\_sprite**(3alleg)](/set_mouse_sprite/3alleg.md), [**get\_mouse\_mickeys**(3alleg)](/get_mouse_mickeys/3alleg.md), [**gfx\_capabilities**(3alleg)](/gfx_capabilities/3alleg.md), [**enable\_hardware\_cursor**(3alleg)](/enable_hardware_cursor/3alleg.md)
