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

KeyboardHandler Struct Reference
[Control]

Interface for keyboard handlers. More...

#include <userinput.h>

Inheritance diagram for KeyboardHandler:

Chat Menu VehicleUserCtrl List of all members.

Public Member Functions

virtual bool onKeyEvent (SDLKey key)=0
 Called on keyboard events.

virtual ~KeyboardHandler ()

Detailed Description

Interface for keyboard handlers.

Interfaces must be registered to a UserInput object with UserInput::addHandler().


Constructor & Destructor Documentation

virtual KeyboardHandler::~KeyboardHandler  )  [inline, virtual]
 


Member Function Documentation

virtual bool KeyboardHandler::onKeyEvent SDLKey  key  )  [pure virtual]
 

Called on keyboard events.

This function should return true if the handler is able to process the key event and false otherwise.

Implemented in Chat, Menu, and VehicleUserCtrl.


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