83class Wiimote :
public yarp::dev::DeviceDriver,
84 public yarp::dev::IJoypadController,
89 bool open(yarp::os::Searchable& config)
override;
90 bool close()
override;
93#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
94 yarp::dev::ReturnValue getAxisCount(std::size_t & axis_count)
override;
95 yarp::dev::ReturnValue getButtonCount(std::size_t & button_count)
override;
96 yarp::dev::ReturnValue getTrackballCount(std::size_t & trackball_count)
override;
97 yarp::dev::ReturnValue getHatCount(std::size_t & hat_count)
override;
98 yarp::dev::ReturnValue getTouchSurfaceCount(std::size_t & touch_count)
override;
99 yarp::dev::ReturnValue getStickCount(std::size_t & stick_count)
override;
100 yarp::dev::ReturnValue getButton(std::size_t button_id,
double & value)
override;
101 yarp::dev::ReturnValue getTrackball(std::size_t trackball_id, yarp::dev::TrackballData & value)
override;
102 yarp::dev::ReturnValue getHat(std::size_t hat_id,
unsigned char & value)
override;
103 yarp::dev::ReturnValue getAxis(std::size_t axis_id,
double & value)
override;
104 yarp::dev::ReturnValue getAllAxes(std::vector<double> & values)
override;
105 yarp::dev::ReturnValue getStick(std::size_t stick_id, yarp::dev::StickData & value, yarp::dev::IJoypadController::JoypadCtrl_coordinateMode coordinate_mode)
override;
106 yarp::dev::ReturnValue getTouch(std::size_t touch_id, std::vector<yarp::dev::TouchData> & value)
override;
108 bool getAxisCount(
unsigned int & axis_count)
override;
109 bool getButtonCount(
unsigned int & button_count)
override;
110 bool getTrackballCount(
unsigned int & trackball_count)
override;
111 bool getHatCount(
unsigned int & hat_count)
override;
112 bool getTouchSurfaceCount(
unsigned int & touch_count)
override;
113 bool getStickCount(
unsigned int & stick_count)
override;
114 bool getStickDoF(
unsigned int stick_id,
unsigned int & DoF)
override;
115 bool getButton(
unsigned int button_id,
float & value)
override;
116 bool getTrackball(
unsigned int trackball_id, yarp::sig::Vector & value)
override;
117 bool getHat(
unsigned int hat_id,
unsigned char & value)
override;
118 bool getAxis(
unsigned int axis_id,
double & value)
override;
119 bool getStick(
unsigned int stick_id, yarp::sig::Vector & value, yarp::dev::IJoypadController::JoypadCtrl_coordinateMode coordinate_mode)
override;
120 bool getTouch(
unsigned int touch_id, yarp::sig::Vector & value)
override;
124 static char * getDevicePath(
int id);
126 struct xwii_iface * iface {
nullptr};