39 public yarp::dev::IJoypadController,
40 public yarp::os::Thread,
45 bool open(yarp::os::Searchable & config)
override;
46 bool close()
override;
52#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
53 yarp::dev::ReturnValue getAxisCount(std::size_t & axis_count)
override;
54 yarp::dev::ReturnValue getButtonCount(std::size_t & button_count)
override;
55 yarp::dev::ReturnValue getTrackballCount(std::size_t & trackball_count)
override;
56 yarp::dev::ReturnValue getHatCount(std::size_t & hat_count)
override;
57 yarp::dev::ReturnValue getTouchSurfaceCount(std::size_t & touch_count)
override;
58 yarp::dev::ReturnValue getStickCount(std::size_t & stick_count)
override;
59 yarp::dev::ReturnValue getButton(std::size_t button_id,
double & value)
override;
60 yarp::dev::ReturnValue getTrackball(std::size_t trackball_id, yarp::dev::TrackballData & value)
override;
61 yarp::dev::ReturnValue getHat(std::size_t hat_id,
unsigned char & value)
override;
62 yarp::dev::ReturnValue getAxis(std::size_t axis_id,
double & value)
override;
63 yarp::dev::ReturnValue getAllAxes(std::vector<double> & values)
override;
64 yarp::dev::ReturnValue getStick(std::size_t stick_id, yarp::dev::StickData & value, yarp::dev::IJoypadController::JoypadCtrl_coordinateMode coordinate_mode)
override;
65 yarp::dev::ReturnValue getTouch(std::size_t touch_id, std::vector<yarp::dev::TouchData> & value)
override;
67 bool getAxisCount(
unsigned int & axis_count)
override;
68 bool getButtonCount(
unsigned int & button_count)
override;
69 bool getTrackballCount(
unsigned int & trackball_count)
override;
70 bool getHatCount(
unsigned int & hat_count)
override;
71 bool getTouchSurfaceCount(
unsigned int & touch_count)
override;
72 bool getStickCount(
unsigned int & stick_count)
override;
73 bool getStickDoF(
unsigned int stick_id,
unsigned int & DoF)
override;
74 bool getButton(
unsigned int button_id,
float & value)
override;
75 bool getTrackball(
unsigned int trackball_id, yarp::sig::Vector & value)
override;
76 bool getHat(
unsigned int hat_id,
unsigned char & value)
override;
77 bool getAxis(
unsigned int axis_id,
double & value)
override;
78 bool getStick(
unsigned int stick_id, yarp::sig::Vector & value, yarp::dev::IJoypadController::JoypadCtrl_coordinateMode coordinate_mode)
override;
79 bool getTouch(
unsigned int touch_id, yarp::sig::Vector & value)
override;
94 double deadband {0.0};
96 mutable std::mutex mtx;