---
name: "CL_Keyboard"
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_Keyboard"
---

# CL\_Keyboard(3)

Keyboard interface in ClanLib.

## NAME

CL\_Keyboard - Keyboard interface in ClanLib.

## DESCRIPTION

This is the keyboard input device interface. It contains all the extra functions needed by the keyboard, which didn't fit into the general CL\_InputDevice abstraction.

Inherited from public CL\_InputDevice

## CLASS MEMBERS

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

  - static bool **get\_keycode**(

  ```
  int button_no)
  ```

## MEMBERS WITH DESCRIPTIONS

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

  ```
  Description:
  ```

- static bool **get\_keycode**(

  ```
  int button_no)
  ```

  ```
  Parameters:
  button_no - Button number checked for being pressed.
  ```

  ```
  Description:
  ```

  Returns true if the specified button is down on the keyboard.This static function is an easier way of writing CL\_Input::keyboards\[0\]-\>get\_button-\>is\_pressed();

  ```
  Return value:
  ```

  True if the key is pressed.

## 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.
