MinVR
0.9.0
A multi-platform virtual reality library
|
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.
Public Member Functions | |
AbstractInputDevice () | |
virtual | ~AbstractInputDevice () |
virtual void | pollForInput (std::vector< EventRef > &events)=0 |
Adds device events to event queue. More... | |
|
inline |
|
inlinevirtual |
|
pure virtual |
Adds any events generated by the input device to the events array.
Implemented in MinVR::InputDeviceVRPNTracker, MinVR::InputDeviceVRPNButton, MinVR::InputDeviceSpaceNav, MinVR::InputDeviceTUIOClient, and MinVR::InputDeviceVRPNAnalog.