Public Types | Public Member Functions | Private Attributes
joystick Class Reference

#include <js.h>

List of all members.

Public Types


Public Member Functions

float getAxisState (int i_index) const
bool getButtonState (int i_index) const
bool is_open () const
 joystick (const char *dev)
unsigned int nAxes () const
unsigned int nButtons () const
bool readEvent ()
 ~joystick ()

Private Attributes

std::vector< float > m_axes
std::vector< bool > m_buttons
int m_fd

Detailed Description

Definition at line 6 of file js.h.

Member Enumeration Documentation


Definition at line 9 of file js.h.

Constructor & Destructor Documentation

joystick::joystick ( const char *  dev)

Definition at line 10 of file js.cpp.

Definition at line 33 of file js.cpp.

Member Function Documentation

float joystick::getAxisState ( int  i_index) const [inline]

Definition at line 14 of file js.h.

bool joystick::getButtonState ( int  i_index) const [inline]

Definition at line 13 of file js.h.

bool joystick::is_open ( ) const [inline]

Definition at line 15 of file js.h.

unsigned int joystick::nAxes ( ) const [inline]

Definition at line 17 of file js.h.

unsigned int joystick::nButtons ( ) const [inline]

Definition at line 16 of file js.h.

Definition at line 40 of file js.cpp.

Member Data Documentation

std::vector<float> joystick::m_axes [private]

Definition at line 20 of file js.h.

std::vector<bool> joystick::m_buttons [private]

Definition at line 21 of file js.h.

int joystick::m_fd [private]

Definition at line 19 of file js.h.

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

Author(s): AIST, Fumio Kanehiro
autogenerated on Wed May 15 2019 05:02:20