CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csKeyboardAccelerator Class Reference
[Keyboard accelerator]

A keyboard accelerator is a invisible component which monitors all events and if it sees a keyboard event which matches one of the predefined combinations it emmits a corresponding event. More...

#include <cskeyacc.h>

Inheritance diagram for csKeyboardAccelerator:

csComponent List of all members.

Public Methods

 csKeyboardAccelerator (csComponent *iParent)
 Create keyboard accelerator object. More...

virtual ~csKeyboardAccelerator ()
 Destroy keyboard accelerator object. More...

void Event (int iKey, int iShifts, csEvent &iEv)
 Insert a key->event conversion table element. More...

void Command (int iKey, int iShifts, int iCommand, void *iInfo=0)
 Insert a key->command event conversion table element. More...

void Broadcast (int iKey, int iShifts, int iCommand, void *iInfo=0)
 Insert a key->broadcast event conversion table element. More...

virtual bool PostHandleEvent (iEvent &Event)
 The "core" function. More...


Detailed Description

A keyboard accelerator is a invisible component which monitors all events and if it sees a keyboard event which matches one of the predefined combinations it emmits a corresponding event.

Definition at line 42 of file cskeyacc.h.


Constructor & Destructor Documentation

csKeyboardAccelerator::csKeyboardAccelerator csComponent   iParent
 

Create keyboard accelerator object.

virtual csKeyboardAccelerator::~csKeyboardAccelerator   [virtual]
 

Destroy keyboard accelerator object.


Member Function Documentation

void csKeyboardAccelerator::Broadcast int    iKey,
int    iShifts,
int    iCommand,
void *    iInfo = 0
 

Insert a key->broadcast event conversion table element.

void csKeyboardAccelerator::Command int    iKey,
int    iShifts,
int    iCommand,
void *    iInfo = 0
 

Insert a key->command event conversion table element.

void csKeyboardAccelerator::Event int    iKey,
int    iShifts,
csEvent   iEv
 

Insert a key->event conversion table element.

virtual bool csKeyboardAccelerator::PostHandleEvent iEvent   Event [virtual]
 

The "core" function.

Reimplemented from csComponent.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14