PlayerCc::LinuxjoystickProxy Class Reference

The LinuxjoystickProxy class is used to control a joystick device. More...

#include <playerc++.h>

Inheritance diagram for PlayerCc::LinuxjoystickProxy:
PlayerCc::ClientProxy

List of all members.

Public Member Functions

 LinuxjoystickProxy (PlayerClient *aPc, uint32_t aIndex=0)
 constructor
 ~LinuxjoystickProxy ()
 destructor
uint32_t GetButtons () const
 return the sensor count
double GetAxes (uint32_t aIndex) const
 return a particular scan value
double operator[] (uint32_t aIndex) const
 This operator provides an alternate way of access the scan data.
uint32_t GetAxesCount () const
 Number of valid joystick poses.

Private Member Functions

void Subscribe (uint32_t aIndex)
void Unsubscribe ()

Private Attributes

playerc_joystick_tmDevice

Detailed Description

The LinuxjoystickProxy class is used to control a joystick device.

The most recent joystick range measuremts can be read from the range attribute, or using the the [] operator.


Member Function Documentation

double PlayerCc::LinuxjoystickProxy::operator[] ( uint32_t  aIndex) const [inline]

This operator provides an alternate way of access the scan data.

For example, LinuxjoystickProxy[0] == LinuxjoystickProxy.GetRange(0)


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

Last updated 25 May 2011 21:17:00