UdpDevice Class Reference
#include <UdpDevice.h>
Inherits InputDeviceBase.
Inherited by StrangeDevice.
Collaboration diagram for UdpDevice:

Public Member Functions | |
| UdpDevice (unsigned networkChannel=UDPDEVICE_NETWORKCHANNEL) | |
| virtual | ~UdpDevice () |
| virtual void | update () |
Static Protected Member Functions | |
| static void | decodeStateFromBinaryMessage (DEVICESTATE *deviceState, NetMessage *msg) |
| static void | decodeButtonState (DEVICESTATE *deviceState, OSG::UInt8 *buttonData, OSG::UInt8 numButtons) |
Protected Attributes | |
| unsigned | networkChannel |
| NetworkInterface * | netInt |
Constructor & Destructor Documentation
| OSG_USING_NAMESPACE UdpDevice::UdpDevice | ( | unsigned | networkChannel = UDPDEVICE_NETWORKCHANNEL |
) |
Constructor
| UdpDevice::~UdpDevice | ( | ) | [virtual] |
Destructor
Member Function Documentation
| static void UdpDevice::decodeButtonState | ( | DEVICESTATE * | deviceState, | |
| OSG::UInt8 * | buttonData, | |||
| OSG::UInt8 | numButtons | |||
| ) | [static, protected] |
Helper-method for decoding the buttons state from the message
Reimplemented in StrangeDevice.
| void UdpDevice::decodeStateFromBinaryMessage | ( | DEVICESTATE * | deviceState, | |
| NetMessage * | msg | |||
| ) | [static, protected] |
Decodes the device state from the passed NetMessage
Reimplemented in StrangeDevice.
| void UdpDevice::update | ( | ) | [virtual] |
Updates the input data. This method requests all incoming network messages from the network module and decodes the device states.
Reimplemented from InputDeviceBase.
Reimplemented in StrangeDevice.
Member Data Documentation
NetworkInterface* UdpDevice::netInt [protected] |
unsigned UdpDevice::networkChannel [protected] |
The documentation for this class was generated from the following files:
- src/inVRs/InputInterface/ControllerManager/UdpDevice.h
- src/inVRs/InputInterface/ControllerManager/UdpDevice.cpp
Generated on Wed Oct 20 16:12:02 2010 for inVRs by
1.5.8