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

# scare\_mouse\_area(3alleg4)

Helper for hiding the mouse cursor before drawing in an area. Allegro game programming library.

## NAME

scare\_mouse\_area - Helper for hiding the mouse cursor before drawing in an area. Allegro game programming library.

## SYNOPSIS

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

**void scare\_mouse\_area(int x, int y, int w, int h);**

## DESCRIPTION

Like scare\_mouse(), but will only hide the cursor if it is inside the  specified rectangle. Otherwise the cursor will simply be frozen in place  until you call unscare\_mouse(), so it cannot interfere with your drawing.

## SEE ALSO

**unscare\_mouse**(3alleg4), **scare\_mouse**(3alleg4), **show\_mouse**(3alleg4)
