OgreHaptics::DeviceListener Class Reference

DeviceListener is an interface class which can be implemented to receive event notifications from Device instances. More...

#include <OgreHapticsDevice.h>

List of all members.

Public Member Functions

virtual ~DeviceListener ()
 Virtual destructor.
virtual void buttonPressed (const DeviceEvent &evt)
 Called when a button on the device has been pressed.
virtual void buttonReleased (const DeviceEvent &evt)
 Called when a button on the device has been release.
virtual void calibrationStateChanged (const DeviceEvent &evt)
 Called when the calibration state of the device has been changed.


Detailed Description

DeviceListener is an interface class which can be implemented to receive event notifications from Device instances.

Remarks:
In order to receive events from Device instances, you should create a subclass of DeviceListener and override the methods for the event you want to be notified. You should set the listener on one or multiple Device instance using Device::setListener. Only a single listener is allowed per device - if event broadcasting is needed, you need to implement it yourself.
Events are fired from a device after Device::capture is called.
Todo:
Implement OpenHaptics options.

Definition at line 249 of file OgreHapticsDevice.h.


Constructor & Destructor Documentation

virtual OgreHaptics::DeviceListener::~DeviceListener (  )  [virtual]

Virtual destructor.

Definition at line 254 of file OgreHapticsDevice.h.


Member Function Documentation

virtual void OgreHaptics::DeviceListener::buttonPressed ( const DeviceEvent evt  )  [virtual]

Called when a button on the device has been pressed.

Definition at line 257 of file OgreHapticsDevice.h.

virtual void OgreHaptics::DeviceListener::buttonReleased ( const DeviceEvent evt  )  [virtual]

Called when a button on the device has been release.

Definition at line 259 of file OgreHapticsDevice.h.

virtual void OgreHaptics::DeviceListener::calibrationStateChanged ( const DeviceEvent evt  )  [virtual]

Called when the calibration state of the device has been changed.

Definition at line 261 of file OgreHapticsDevice.h.


The documentation for this class was generated from the following file:

Last modified Tue Jan 6 22:31:26 2009