9#ifndef YARP_DEV_KEYBOARDJOYPAD_H
10#define YARP_DEV_KEYBOARDJOYPAD_H
37 virtual bool close()
override;
42 virtual void run()
override;
66 std::unique_ptr<Impl> m_pimpl;
Interface implemented by all device drivers.
JoypadCtrl_coordinateMode
Common interface for devices that act like services (by which we mean they do something for remote us...
virtual bool close() override
Close the DeviceDriver.
virtual 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.
virtual yarp::dev::ReturnValue getHat(size_t hat_id, unsigned char &value) override
Get the value of an Hat.
virtual ~KeyboardJoypad()
virtual bool startService() override
Initiate the service, whatever it is.
virtual yarp::dev::ReturnValue getTrackball(size_t trackball_id, yarp::dev::TrackballData &value) override
Get the axes change of a Trackball.
virtual yarp::dev::ReturnValue getButton(size_t button_id, double &value) override
Get the value of a button.
virtual bool open(yarp::os::Searchable &cfg) override
Open the DeviceDriver.
virtual void run() override
Loop function.
virtual yarp::dev::ReturnValue getButtonCount(size_t &button_count) override
Get number of buttons.
virtual yarp::dev::ReturnValue getAxis(size_t axis_id, double &value) override
Get the value of an axis if present, return false otherwise.
virtual 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.
virtual yarp::dev::ReturnValue getAxisCount(size_t &axis_count) override
Get number of axes.
virtual yarp::dev::ReturnValue getHatCount(size_t &hat_count) override
Get number of hats.
virtual void threadRelease() override
Release method.
virtual yarp::dev::ReturnValue getStickCount(size_t &stick_count) override
Get the number of the sticks.
virtual yarp::dev::ReturnValue getTouchSurfaceCount(size_t &touch_count) override
Get the number of touch surface.
virtual bool stopService() override
Shut down the service, whatever it is.
virtual bool threadInit() override
Initialization method.
virtual bool updateService() override
Give the service the chance to run for a while.
virtual yarp::dev::ReturnValue getTrackballCount(size_t &trackball_count) override
Get number of trackballs.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
The main, catch-all namespace for YARP.