#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 |