CL_Keyboard3
Keyboard interface in clanlib.
Overview
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.