---
name: "CL_Mouse"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_Mouse"
---

# CL\_Mouse(3)

Mouse interface in ClanLib.

## NAME

CL\_Mouse - Mouse interface in ClanLib.

## DESCRIPTION

CL\_Mouse extends the CL\_InputDevice with functionality only useful to mice.

Inherited from public CL\_InputDevice

## CLASS MEMBERS

- virtual **~CL\_Mouse**()

  - static int **get\_x**()

  - static int **get\_y**()

  - static bool **left\_pressed**()

  - static bool **middle\_pressed**()

  - static bool **right\_pressed**()

  ## MEMBERS WITH DESCRIPTIONS

- virtual **~CL\_Mouse**()

  ```
  Description:
  ```

- static int **get\_x**()

  ```
  Description:
  ```

  ```
  Return value:
  ```

  Returns the x position of the mouse in range from \[ 0 - CL\_Display::get\_height() \[.

- static int **get\_y**()

  ```
  Description:
  ```

  ```
  Return value:
  ```

  Returns the y position of the mouse in range from \[ 0 - CL\_Display::get\_height() \[.

- static bool **left\_pressed**()

  ```
  Description:
  ```

  ```
  Return value:
  ```

  Returns true if the left mouse button is pressed, else false is returned.

- static bool **middle\_pressed**()

  ```
  Description:
  ```

  ```
  Return value:
  ```

  Returns true if the middle mouse button is pressed, else false is returned.

- static bool **right\_pressed**()

  ```
  Description:
  ```

  ```
  Return value:
  ```

  Returns true if the right mouse button is pressed, else false is returned.

## SEE ALSO

- **CL\_Settings**

  The class holding ClanLib state information like width/height of the currentdisplay

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
