Reference

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 <[email protected]> and Martin Starch <[email protected]>. 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.