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

DeviceSensorNode Class Reference

DeviceSensorNode is the base class for all sensors which listen to physical devices. More...

Inheritance diagram for DeviceSensorNode:

ChildNode EventHandler Node Object ButtonSensor ValueSensor WindowSensor List of all members.

Public Member Functions

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

Detailed Description

DeviceSensorNode is the base class for all sensors which listen to physical devices.

These can be built-in (like keyboard and mouse) or plugged in, like space-balls.

Authoring Interface:

        DeviceSensorNode {
            field   SFBoolean   enabled         true
            field   SFURL       device          ""
        }

Parameters:
enabled controls whether this node will emit any events. Default value: true
device is a string identifying the device this sensor is listening to. Default value: ""

Functionality:

...


Member Function Documentation

virtual bool handleEvent const Event event  )  [inline, 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

Implements EventHandler.

Reimplemented in ButtonSensor, ValueSensor, and WindowSensor.


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