Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_InputBuffer Class Reference

#include <inputbuffer.h>

Collaboration diagram for CL_InputBuffer:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_InputBuffer ()
 CL_InputBuffer (CL_InputDevice *device)
 CL_InputBuffer (CL_Signal_v4< CL_Component *, CL_InputDevice *, CL_Key, bool &> &sig_key_down, CL_Signal_v3< CL_Component *, CL_InputDevice *, CL_Key > &sig_key_up)
virtual ~CL_InputBuffer ()
CL_Key peek_key () const
CL_Key get_key ()
int keys_left ()
void clear ()
 retval: Number of key values lefts in buffer.


Private Methods

void on_button_press (CL_InputDevice *device, const CL_Key &key)
void on_button_release (CL_InputDevice *device, const CL_Key &key)
void on_key_down (CL_Component *, CL_InputDevice *device, CL_Key key, bool &retval)
void on_key_up (CL_Component *, CL_InputDevice *device, CL_Key key)

Private Attributes

CL_Slot slot_button_press
CL_Slot slot_button_release
CL_Slot slot_key_down
CL_Slot slot_key_up
std::queue<CL_Keybuffer
CL_InputDevicedevice

Constructor & Destructor Documentation

CL_InputBuffer::CL_InputBuffer ( )
 

CL_InputBuffer::CL_InputBuffer ( CL_InputDevice * device )
 

CL_InputBuffer::CL_InputBuffer ( CL_Signal_v4< CL_Component *, CL_InputDevice *, CL_Key, bool &> & sig_key_down,
CL_Signal_v3< CL_Component *, CL_InputDevice *, CL_Key > & sig_key_up )
 

virtual CL_InputBuffer::~CL_InputBuffer ( ) [virtual]
 


Member Function Documentation

void CL_InputBuffer::clear ( )
 

retval: Number of key values lefts in buffer.

CL_Key CL_InputBuffer::get_key ( )
 

int CL_InputBuffer::keys_left ( )
 

void CL_InputBuffer::on_button_press ( CL_InputDevice * device,
const CL_Key & key ) [private]
 

void CL_InputBuffer::on_button_release ( CL_InputDevice * device,
const CL_Key & key ) [private]
 

void CL_InputBuffer::on_key_down ( CL_Component *,
CL_InputDevice * device,
CL_Key key,
bool & retval ) [private]
 

void CL_InputBuffer::on_key_up ( CL_Component *,
CL_InputDevice * device,
CL_Key key ) [private]
 

CL_Key CL_InputBuffer::peek_key ( ) const
 


Member Data Documentation

std::queue<CL_Key> CL_InputBuffer::buffer [private]
 

Definition at line 72 of file inputbuffer.h.

CL_InputDevice* CL_InputBuffer::device [private]
 

Definition at line 73 of file inputbuffer.h.

CL_Slot CL_InputBuffer::slot_button_press [private]
 

Definition at line 61 of file inputbuffer.h.

CL_Slot CL_InputBuffer::slot_button_release [private]
 

Definition at line 62 of file inputbuffer.h.

CL_Slot CL_InputBuffer::slot_key_down [private]
 

Definition at line 63 of file inputbuffer.h.

CL_Slot CL_InputBuffer::slot_key_up [private]
 

Definition at line 64 of file inputbuffer.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:01 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001