Choreonoid  1.8
Public Member Functions | Static Public Member Functions | List of all members
cnoid::ExtJoystick Class Referenceabstract

#include <ExtJoystick.h>

Inherited by cnoid::VirtualJoystickViewImpl.

Public Member Functions

SignalProxy< void()> sigDestroyed ()
 
virtual ~ExtJoystick ()
 
virtual int numAxes () const =0
 
virtual int numButtons () const =0
 
virtual bool readCurrentState ()=0
 
virtual double getPosition (int axis) const =0
 
virtual bool getButtonState (int button) const =0
 
virtual bool isActive () const =0
 
virtual SignalProxy< void(int id, double position)> sigAxis ()=0
 
virtual SignalProxy< void(int id, bool isPressed)> sigButton ()=0
 

Static Public Member Functions

static void registerJoystick (const std::string &name, ExtJoystick *joystick)
 
static ExtJoystickfindJoystick (const std::string &name)
 

Constructor & Destructor Documentation

◆ ~ExtJoystick()

ExtJoystick::~ExtJoystick ( )
virtual

Member Function Documentation

◆ findJoystick()

ExtJoystick * ExtJoystick::findJoystick ( const std::string &  name)
static

◆ getButtonState()

virtual bool cnoid::ExtJoystick::getButtonState ( int  button) const
pure virtual

◆ getPosition()

virtual double cnoid::ExtJoystick::getPosition ( int  axis) const
pure virtual

◆ isActive()

virtual bool cnoid::ExtJoystick::isActive ( ) const
pure virtual

◆ numAxes()

virtual int cnoid::ExtJoystick::numAxes ( ) const
pure virtual

◆ numButtons()

virtual int cnoid::ExtJoystick::numButtons ( ) const
pure virtual

◆ readCurrentState()

virtual bool cnoid::ExtJoystick::readCurrentState ( )
pure virtual

◆ registerJoystick()

void ExtJoystick::registerJoystick ( const std::string &  name,
ExtJoystick joystick 
)
static

◆ sigAxis()

virtual SignalProxy<void(int id, double position)> cnoid::ExtJoystick::sigAxis ( )
pure virtual

◆ sigButton()

virtual SignalProxy<void(int id, bool isPressed)> cnoid::ExtJoystick::sigButton ( )
pure virtual

◆ sigDestroyed()

SignalProxy<void()> cnoid::ExtJoystick::sigDestroyed ( )
inline

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