---
name: "mouse_sprite"
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/mouse_sprite/3alleg4"
---

# mouse\_sprite(3alleg4)

Global variable with the mouse sprite and focus point. Allegro game programming library.

## NAME

mouse\_sprite, mouse\_x\_focus, mouse\_y\_focus - Global variable with the mouse sprite and focus point. Allegro game programming library.

## SYNOPSIS

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

**extern BITMAP \*mouse\_sprite;**

**extern int mouse\_x\_focus;**

**extern int mouse\_y\_focus;**

## DESCRIPTION

Global variables containing the current mouse sprite and the focus point.  These are read-only, and only to be modified using the set\_mouse\_sprite() and set\_mouse\_sprite\_focus() functions.

## SEE ALSO

**set\_mouse\_sprite**(3alleg4), **set\_mouse\_sprite\_focus**(3alleg4)
