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

# set\_mouse\_sprite\_focus(3alleg4)

Sets the mouse sprite focus. Allegro game programming library.

## NAME

set\_mouse\_sprite\_focus - Sets the mouse sprite focus. Allegro game programming library.

## SYNOPSIS

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

**void set\_mouse\_sprite\_focus(int x, int y);**

## DESCRIPTION

The mouse focus is the bit of the pointer that represents the actual  mouse position, ie. the (mouse\_x, mouse\_y) position. By default this is  the top left corner of the arrow, but if you are using a different mouse  pointer you might need to alter it.

## SEE ALSO

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