Choreonoid  1.8
Public Member Functions | Static Public Attributes | List of all members
cnoid::SharedJoystick Class Reference

#include <SharedJoystick.h>

Inheritance diagram for cnoid::SharedJoystick:
cnoid::Referenced

Public Member Functions

 SharedJoystick ()
 
void setJoystick (JoystickInterface *joystick)
 
int addMode ()
 
bool getModeButtonState ()
 
void updateState (int targetMode)
 
int mode () const
 
bool isMode (int id) const
 
void setMode (int id)
 
double getPosition (int axis, double threshold=0.0) const
 
double getPosition (int targetMode, int axis, double threshold=0.0) const
 
bool getButtonState (int button) const
 
bool getButtonState (int targetMode, int button) const
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Static Public Attributes

static const Joystick::ButtonID MODE_BUTTON1 = Joystick::LOGO_BUTTON
 
static const Joystick::ButtonID MODE_BUTTON2 = Joystick::SELECT_BUTTON
 

Additional Inherited Members

- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ SharedJoystick()

cnoid::SharedJoystick::SharedJoystick ( )
inline

Member Function Documentation

◆ addMode()

int cnoid::SharedJoystick::addMode ( )
inline

◆ getButtonState() [1/2]

bool cnoid::SharedJoystick::getButtonState ( int  button) const
inline

◆ getButtonState() [2/2]

bool cnoid::SharedJoystick::getButtonState ( int  targetMode,
int  button 
) const
inline

◆ getModeButtonState()

bool cnoid::SharedJoystick::getModeButtonState ( )
inline

◆ getPosition() [1/2]

double cnoid::SharedJoystick::getPosition ( int  axis,
double  threshold = 0.0 
) const
inline

◆ getPosition() [2/2]

double cnoid::SharedJoystick::getPosition ( int  targetMode,
int  axis,
double  threshold = 0.0 
) const
inline

◆ isMode()

bool cnoid::SharedJoystick::isMode ( int  id) const
inline

◆ mode()

int cnoid::SharedJoystick::mode ( ) const
inline

◆ setJoystick()

void cnoid::SharedJoystick::setJoystick ( JoystickInterface joystick)
inline

◆ setMode()

void cnoid::SharedJoystick::setMode ( int  id)
inline

◆ updateState()

void cnoid::SharedJoystick::updateState ( int  targetMode)
inline

Member Data Documentation

◆ MODE_BUTTON1

const Joystick::ButtonID cnoid::SharedJoystick::MODE_BUTTON1 = Joystick::LOGO_BUTTON
static

◆ MODE_BUTTON2

const Joystick::ButtonID cnoid::SharedJoystick::MODE_BUTTON2 = Joystick::SELECT_BUTTON
static

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