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

UserInput Class Reference
[Control]

User input (mouse and keyboard) base handler. More...

#include <userinput.h>

List of all members.

Public Member Functions

void processEvents ()
 Called from the main loop.

void addHandler (KeyboardHandler *h)
 Add handler to the key event handler chain.

 UserInput ()

Public Attributes

int key_left
int key_right
int key_forward
int key_back
int key_shoot
int mouse_delta_x
int mouse_delta_y
int mouse_left
int mouse_right


Detailed Description

User input (mouse and keyboard) base handler.


Constructor & Destructor Documentation

UserInput::UserInput  )  [inline]
 


Member Function Documentation

void UserInput::addHandler KeyboardHandler h  )  [inline]
 

Add handler to the key event handler chain.

Event handlers at the back of the chain (added last) will only receive an event if all handlers before are unable to handle the event (KeyboardHandler::onKeyEvent() returns false)

void UserInput::processEvents  ) 
 

Called from the main loop.


Member Data Documentation

int UserInput::key_back
 

int UserInput::key_forward
 

int UserInput::key_left
 

int UserInput::key_right
 

int UserInput::key_shoot
 

int UserInput::mouse_delta_x
 

int UserInput::mouse_delta_y
 

int UserInput::mouse_left
 

int UserInput::mouse_right
 


The documentation for this class was generated from the following files:
Generated on Mon Jul 21 10:44:48 2003 for Rover by doxygen 1.3.2