UdpDevice Class Reference

#include <UdpDevice.h>

Inherits InputDeviceBase.

Inherited by StrangeDevice.

Collaboration diagram for UdpDevice:

List of all members.


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
NetworkInterfacenetInt

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

unsigned UdpDevice::networkChannel [protected]


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

Generated on Wed Oct 20 16:12:02 2010 for inVRs by doxygen 1.5.8