CL_InputBuffer(3)

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:

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.

From clanlib0-common-dev 0.4.4-8 in Debian 3.0 (Woody). Parsed by carta from the page's man source.