CL_InputBuffer3
Input buffer interface.
Overview
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: