#include <js.h>
Public Types | |
enum | event { EVENT_AXIS, EVENT_BUTTON, EVENT_NONE } |
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 |
enum joystick::event |
joystick::joystick | ( | const char * | dev | ) |
float joystick::getAxisState | ( | int | i_index | ) | const [inline] |
bool joystick::getButtonState | ( | int | i_index | ) | const [inline] |
bool joystick::is_open | ( | ) | const [inline] |
unsigned int joystick::nAxes | ( | ) | const [inline] |
unsigned int joystick::nButtons | ( | ) | const [inline] |
bool joystick::readEvent | ( | ) |
std::vector<float> joystick::m_axes [private] |
std::vector<bool> joystick::m_buttons [private] |
int joystick::m_fd [private] |