#include <ControlMapper.h>
Public Member Functions | |
virtual bool | handleEvent (NetControlEvent *pEvent, TNL::EventConnection *pConnection)=0 |
Handle "one-shot" events (Key pressed for firing, for example). | |
virtual void | onAddedToControler (Controler *pControler) |
Callback invoked when this event handler is associated with a Controler. | |
virtual void | onRemovedFromControler (const Controler *pControler) |
Protected Member Functions | |
virtual | ~ControlEventHandler () |
Protected destructor forces the object to be deleted by being dereferenced. |
Definition at line 54 of file ControlMapper.h.
virtual ControlEventHandler::~ControlEventHandler | ( | ) | [inline, protected, virtual] |
Protected destructor forces the object to be deleted by being dereferenced.
Also avoids the object from beeing created on the stack.
Definition at line 70 of file ControlMapper.h.
virtual bool ControlEventHandler::handleEvent | ( | NetControlEvent * | pEvent, | |
TNL::EventConnection * | pConnection | |||
) | [pure virtual] |
Handle "one-shot" events (Key pressed for firing, for example).
If pConnection parameter is not NULL, then the event should be considered as a client event (generally sent instead if processed).
true
if the event is handled, ie. should not be processed by other handlers. Returning true
DOES NOT MEAN that the corresponding (mapped) OSG input is handled ! Handling controls is different from OSG. Implemented in HumanMatrixGetter.
virtual void ControlEventHandler::onAddedToControler | ( | Controler * | pControler | ) | [inline, virtual] |
Callback invoked when this event handler is associated with a Controler.
Reimplemented in ControlHandler.
Definition at line 64 of file ControlMapper.h.
Referenced by ControlMapper::addHandlerBack(), and ControlMapper::replaceHandler().
virtual void ControlEventHandler::onRemovedFromControler | ( | const Controler * | pControler | ) | [inline, virtual] |
Reimplemented in ControlHandler.
Definition at line 65 of file ControlMapper.h.
Referenced by ControlMapper::removeHandler(), and ControlMapper::replaceHandler().