26 size_t m_buttonCount {4};
27 size_t m_axisCount {4};
28 size_t m_stickCount {4};
29 size_t m_touchCount {4};
30 size_t m_ballCount {4};
31 size_t m_hatCount {4};
34 std::vector<yarp::dev::TouchData> m_data_touch;
43 bool close()
override;
This class is the parameters parser for class FakeJoypad.
FakeJoypad : fake device implementing the device interface
yarp::dev::ReturnValue getStickCount(size_t &stick_count) override
Get the number of the sticks.
yarp::dev::ReturnValue getHatCount(size_t &hat_count) override
Get number of hats.
bool close() override
Close the DeviceDriver.
yarp::dev::ReturnValue getTouch(size_t touch_id, std::vector< yarp::dev::TouchData > &value) override
Get the value of a touch if present, return false otherwise.
yarp::dev::ReturnValue getTrackballCount(size_t &trackball_count) override
Get number of trackballs.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::ReturnValue getTouchSurfaceCount(size_t &touch_count) override
Get the number of touch surface.
yarp::dev::ReturnValue getButtonCount(size_t &button_count) override
Get number of buttons.
yarp::dev::ReturnValue getButton(size_t button_id, double &value) override
Get the value of a button.
yarp::dev::ReturnValue getHat(size_t hat_id, unsigned char &value) override
Get the value of an Hat.
yarp::dev::ReturnValue getAxis(size_t axis_id, double &value) override
Get the value of an axis if present, return false otherwise.
yarp::dev::ReturnValue getTrackball(size_t trackball_id, yarp::dev::TrackballData &value) override
Get the axes change of a Trackball.
yarp::dev::ReturnValue getStick(size_t stick_id, yarp::dev::StickData &value, JoypadCtrl_coordinateMode coordinate_mode) override
Get the value of a stick if present, return false otherwise.
yarp::dev::ReturnValue getAxisCount(size_t &axis_count) override
Get number of axes.
Interface implemented by all device drivers.
JoypadCtrl_coordinateMode
A base class for nested structures that can be searched.