Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

EventHandler Class Reference

Base class for event handlers. More...

Inheritance diagram for EventHandler:

DeviceSensorNode DropSensor PlaneSensor SphereSensor Text2D Timer WxGUI ButtonSensor ValueSensor WindowSensor List of all members.

Public Member Functions

virtual bool handleEvent (const Event &event)=0
 Callback function that is implemented by the callee.

Detailed Description

Base class for event handlers.

These get installed into the main event loop in Instance


Member Function Documentation

virtual bool handleEvent const Event event  )  [pure virtual]
 

Callback function that is implemented by the callee.

Parameters:
event specifies the time of the event. Event time will be the same for events occurring in the same render phase For example, PREUPDATE, POSTUPDATE, PRERENDER and POSTRENDER event callbacks will all pass the same event time for the same frame. Returning stop Emma from calling the rest of the handlers for this event If you return true, Emma will keep on calling rest of the handlers for this event

Implemented in ButtonSensor, DeviceSensorNode, DropSensor, Timer, ValueSensor, WindowSensor, Text2D, PlaneSensor, SphereSensor, and WxGUI.


Generated on Sat Apr 1 06:08:06 2006 for Emma Content Development Kit by  doxygen 1.4.3