NAME
CL_InputBuffer - Input buffer interface.
DESCRIPTION
Use this class to read buffered keys from the keyboard (or any other device).
Inherited from CL_Event_ButtonPress, CL_Event_ButtonRelease
CLASS MEMBERS
- CL_InputBuffer()
- CL_InputBuffer(
-
CL_InputDevice *device)
- virtual ~CL_InputBuffer()
- CL_Key peek_key()
- CL_Key get_key()
- int keys_left()
- void clear()
MEMBERS WITH DESCRIPTIONS
- CL_InputBuffer()
-
Description:
Constructs an input buffer that attaches itself to the first keyboard.
- CL_InputBuffer(
-
CL_InputDevice *device)
Description:
Constructs an input buffer that attaches itself to the specified device.
- virtual ~CL_InputBuffer()
-
Description:
- CL_Key peek_key()
-
Description:
Returns the next key in the buffer, but unlike get_key() it does not pop it from the input buffer.
- CL_Key get_key()
-
Description:
Pops the next key in the buffer and returns it.
- int keys_left()
-
Description:
Returns number of keys still available in the buffer.
Return value:
Number of key values lefts in buffer.
- void clear()
-
Description:
Clears the buffer. After this, the buffer will not contain any keys. implementation:
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.