Choreonoid  1.8
Public Member Functions | List of all members
cnoid::JoystickCapture Class Reference

#include <JoystickCapture.h>

Public Member Functions

 JoystickCapture ()
 
 ~JoystickCapture ()
 
bool setDevice (const char *device)
 
bool isReady () const
 
void releaseDevice ()
 
SignalProxy< void(int id, bool isPressed)> sigButton ()
 
SignalProxy< void(int id, double position)> sigAxis ()
 
int numAxes () const
 
void setAxisEnabled (int axis, bool on)
 
int numButtons () const
 
bool readCurrentState ()
 
double getPosition (int axis) const
 
bool getButtonState (int button) const
 
bool isActive () const
 

Constructor & Destructor Documentation

◆ JoystickCapture()

JoystickCapture::JoystickCapture ( )

◆ ~JoystickCapture()

JoystickCapture::~JoystickCapture ( )

Member Function Documentation

◆ getButtonState()

bool JoystickCapture::getButtonState ( int  button) const

◆ getPosition()

double JoystickCapture::getPosition ( int  axis) const

◆ isActive()

bool JoystickCapture::isActive ( ) const

◆ isReady()

bool JoystickCapture::isReady ( ) const

◆ numAxes()

int JoystickCapture::numAxes ( ) const

◆ numButtons()

int JoystickCapture::numButtons ( ) const

◆ readCurrentState()

bool JoystickCapture::readCurrentState ( )

◆ releaseDevice()

void JoystickCapture::releaseDevice ( )

◆ setAxisEnabled()

void JoystickCapture::setAxisEnabled ( int  axis,
bool  on 
)

◆ setDevice()

bool JoystickCapture::setDevice ( const char *  device)

◆ sigAxis()

SignalProxy< void(int id, double position)> JoystickCapture::sigAxis ( )

◆ sigButton()

SignalProxy< void(int id, bool isPressed)> JoystickCapture::sigButton ( )

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