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

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

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**(3alleg)](/set_mouse_sprite/3alleg.md), [**exmouse**(3alleg)](/exmouse/3alleg.md)
