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

# mouse\_sprite(3alleg)

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**(3alleg)](/set_mouse_sprite/3alleg.md), [**set\_mouse\_sprite\_focus**(3alleg)](/set_mouse_sprite_focus/3alleg.md)
