---
name: "CL_Key"
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_Key"
---

# CL\_Key(3)

Structure descripting a key event.

## NAME

CL\_Key - Structure descripting a key event.

## CLASS MEMBERS

- int **id**

  - float **x**

  - float **y**

  - **CL\_Key**()

  - **CL\_Key**(

  ```
  int l_id,
  State l_state = NoKey,
  int l_ascii = -1,
  float l_x = -1,
  float l_y = -1)
  ```

## MEMBERS WITH DESCRIPTIONS

- int **id**

  ```
  Description:
  ```

  Key ID. CL\_Keyboard Key state. Was it pressed or released. NoKey is used when there were no key available in the input buffer.

- float **x**

  ```
  Description:
  ```

  x-coordinate position if a pointing device was the source. -1 if none.

- float **y**

  ```
  Description:
  ```

  y-coordinate position if a pointing device was the source. -1 if none.

- **CL\_Key**()

  ```
  Description:
  ```

- **CL\_Key**(

  ```
  int l_id,
  State l_state = NoKey,
  int l_ascii = -1,
  float l_x = -1,
  float l_y = -1)
  ```

  ```
  Description:
  ```

## SEE ALSO

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.
