InputDeviceBase Class Reference
#include <InputDeviceBase.h>
Inherits InputDevice.
Inherited by GlutCharKeyboardDevice, GlutMouseDevice, GlutSensorEmulatorDevice, and UdpDevice.

Public Member Functions | |
| InputDeviceBase () | |
| virtual | ~InputDeviceBase () |
| virtual int | getNumberOfButtons () |
| virtual int | getNumberOfAxes () |
| virtual int | getNumberOfSensors () |
| virtual int | getButtonValue (int idx) |
| virtual float | getAxisValue (int idx) |
| virtual SensorData | getSensorValue (int idx) |
| virtual void | update () |
Protected Attributes | |
| int | nButtons |
| int | nAxes |
| int | nSensors |
| int * | buttonState |
| float * | axisState |
| SensorData * | sensorState |
Constructor & Destructor Documentation
| InputDeviceBase::InputDeviceBase | ( | ) |
Constructor
| InputDeviceBase::~InputDeviceBase | ( | ) | [virtual] |
Destructor
Member Function Documentation
| float InputDeviceBase::getAxisValue | ( | int | idx | ) | [virtual] |
Returns the value of the axis with the passed index
Implements InputDevice.
| int InputDeviceBase::getButtonValue | ( | int | idx | ) | [virtual] |
Returns the value of the button with the passed index
Implements InputDevice.
| int InputDeviceBase::getNumberOfAxes | ( | ) | [virtual] |
Returns the number of axes provided by the input device
Implements InputDevice.
| int InputDeviceBase::getNumberOfButtons | ( | ) | [virtual] |
Returns the number of buttons provided by the input device
Implements InputDevice.
| int InputDeviceBase::getNumberOfSensors | ( | ) | [virtual] |
Returns the number of sensors provided by the input device
Implements InputDevice.
| SensorData InputDeviceBase::getSensorValue | ( | int | idx | ) | [virtual] |
Returns the value of the sensor with the passed index
Implements InputDevice.
| void InputDeviceBase::update | ( | ) | [virtual] |
Empty implementation of the update method.
Implements InputDevice.
Reimplemented in GlutMouseDevice, StrangeDevice, and UdpDevice.
Member Data Documentation
float* InputDeviceBase::axisState [protected] |
int* InputDeviceBase::buttonState [protected] |
int InputDeviceBase::nAxes [protected] |
int InputDeviceBase::nButtons [protected] |
int InputDeviceBase::nSensors [protected] |
SensorData* InputDeviceBase::sensorState [protected] |
The documentation for this class was generated from the following files:
- src/inVRs/InputInterface/ControllerManager/InputDeviceBase.h
- src/inVRs/InputInterface/ControllerManager/InputDeviceBase.cpp
Generated on Wed Oct 20 16:11:57 2010 for inVRs by
1.5.8