9#ifndef YARP_DEV_KEYBOARDJOYPAD_H
10#define YARP_DEV_KEYBOARDJOYPAD_H
37 virtual bool close()
override;
42 virtual void run()
override;
50 virtual bool getAxisCount(
unsigned int& axis_count)
override;
53 virtual bool getHatCount(
unsigned int& hat_count)
override;
55 virtual bool getStickCount(
unsigned int& stick_count)
override;
56 virtual bool getStickDoF(
unsigned int stick_id,
unsigned int& dof)
override;
57 virtual bool getButton(
unsigned int button_id,
float& value)
override;
59 virtual bool getHat(
unsigned int hat_id,
unsigned char& value)
override;
60 virtual bool getAxis(
unsigned int axis_id,
double& value)
override;
67 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 bool getStickCount(unsigned int &stick_count) override
virtual ~KeyboardJoypad()
virtual bool startService() override
Initiate the service, whatever it is.
virtual bool getAxis(unsigned int axis_id, double &value) override
virtual bool getTrackballCount(unsigned int &trackball_count) override
virtual bool getButton(unsigned int button_id, float &value) override
virtual bool open(yarp::os::Searchable &cfg) override
Open the DeviceDriver.
virtual bool getTouchSurfaceCount(unsigned int &touch_count) override
virtual bool getStick(unsigned int stick_id, yarp::sig::Vector &value, JoypadCtrl_coordinateMode coordinate_mode) override
virtual void run() override
Loop function.
virtual bool getStickDoF(unsigned int stick_id, unsigned int &dof) override
virtual bool getHat(unsigned int hat_id, unsigned char &value) override
virtual void threadRelease() override
Release method.
virtual bool getAxisCount(unsigned int &axis_count) override
virtual bool stopService() override
Shut down the service, whatever it is.
virtual bool threadInit() override
Initialization method.
virtual bool getTrackball(unsigned int trackball_id, yarp::sig::Vector &value) override
virtual bool getTouch(unsigned int touch_id, yarp::sig::Vector &value) override
virtual bool updateService() override
Give the service the chance to run for a while.
virtual bool getHatCount(unsigned int &hat_count) override
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
The main, catch-all namespace for YARP.