MinVR  0.9.0
A multi-platform virtual reality library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
MinVR::AbstractInputDevice Class Referenceabstract

Base class for InputDevices. Input Devices should be polled once per frame and append Events that were generated since the last call to poll to the array passed into the poll routine.

Inheritance diagram for MinVR::AbstractInputDevice:
MinVR::InputDeviceSpaceNav MinVR::InputDeviceTUIOClient MinVR::InputDeviceVRPNAnalog MinVR::InputDeviceVRPNButton MinVR::InputDeviceVRPNTracker

Public Member Functions

 AbstractInputDevice ()
 
virtual ~AbstractInputDevice ()
 
virtual void pollForInput (std::vector< EventRef > &events)=0
 Adds device events to event queue. More...
 

Constructor & Destructor Documentation

MinVR::AbstractInputDevice::AbstractInputDevice ( )
inline
virtual MinVR::AbstractInputDevice::~AbstractInputDevice ( )
inlinevirtual

Member Function Documentation

virtual void MinVR::AbstractInputDevice::pollForInput ( std::vector< EventRef > &  events)
pure virtual
 Adds any events generated by the input device to the events array.
Remarks
This should be implemented by any derived classes.

Implemented in MinVR::InputDeviceVRPNTracker, MinVR::InputDeviceVRPNButton, MinVR::InputDeviceSpaceNav, MinVR::InputDeviceTUIOClient, and MinVR::InputDeviceVRPNAnalog.


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