Public Member Functions | Private Attributes
LABUST::JoystickReader Class Reference

#include <JoystickReader.h>

Inheritance diagram for LABUST::JoystickReader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 JoystickReader (const std::string &path, std::string configToUse="")
 JoystickReader (const labust::xml::Reader &reader, std::string configToUse="")
JoystickData ReadJoystickData ()
virtual ~JoystickReader ()

Private Attributes

int axes
std::vector< float > axisGains
int buttons
int deviceCounter
int deviceDescriptor
JoystickData joystickData

Detailed Description

Represents a joystick device. Has methods to update state of stick in realtime and to extract data in the JoystickData structure

Data can be sampled from joystick using ReadJoystickData function at any frequency.

Definition at line 51 of file JoystickReader.h.


Constructor & Destructor Documentation

LABUST::JoystickReader::JoystickReader ( const std::string &  path,
std::string  configToUse = "" 
)

Creates a new instance of the joystick class Opens the specified joystick device and loads number of axes and buttons from driver

Definition at line 35 of file JoystickReaderLinux.cpp.

LABUST::JoystickReader::JoystickReader ( const labust::xml::Reader &  reader,
std::string  configToUse = "" 
)

Creates a new instance of the joystick class Opens the first joystick device and uses number of axes and buttons specified by user

Definition at line 139 of file JoystickReaderLinux.cpp.

Definition at line 208 of file JoystickReaderLinux.cpp.


Member Function Documentation

Returnd data about the current state of joystick

Definition at line 222 of file JoystickReaderLinux.cpp.


Member Data Documentation

Definition at line 81 of file JoystickReader.h.

Definition at line 83 of file JoystickReader.h.

Definition at line 81 of file JoystickReader.h.

Definition at line 99 of file JoystickReader.h.

Definition at line 80 of file JoystickReader.h.

Definition at line 82 of file JoystickReader.h.


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


acoustic_vr
Author(s):
autogenerated on Fri Feb 7 2014 11:37:09