|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
66 typedef std::vector<SDLJoypadImpl::stick> stickVector;
69 std::vector<SDL_Joystick*> m_device;
70 unsigned int m_buttonCount {0};
71 unsigned int m_axisCount {0};
72 unsigned int m_stickCount {0};
73 unsigned int m_touchCount {0};
74 unsigned int m_ballCount {0};
75 unsigned int m_hatCount {0};
78 std::vector<bool> m_axes;
79 double m_actionTimestamp;
84 bool getPureAxis(
unsigned int axis_id,
double& value);
91 bool close()
override;
106 bool getRawStickDoF(
unsigned int stick_id,
unsigned int& DoF)
override;
108 bool getRawButton(
unsigned int button_id,
float& value)
override;
112 bool getRawHat(
unsigned int hat_id,
unsigned char& value)
override;
114 bool getRawAxis(
unsigned int axis_id,
double& value)
override;
122 #endif //#define SDLJOYPAD_H
JoypadCtrl_coordinateMode
bool getRawStickCount(unsigned int &stick_count) override
A base class for nested structures that can be searched.
bool getRawTrackballCount(unsigned int &trackball_count) override
bool getRawStickDoF(unsigned int stick_id, unsigned int &DoF) override
Interface implemented by all device drivers.
bool getRawTrackball(unsigned int trackball_id, yarp::sig::Vector &value) override
bool close() override
Close the DeviceDriver.
bool getRawAxisCount(unsigned int &axis_count) override
bool getRawButton(unsigned int button_id, float &value) override
SDLJoypad: Device that reads inputs of Joypads compatible with the SDL library.
bool getRawTouchSurfaceCount(unsigned int &touch_count) override
bool getRawTouch(unsigned int touch_id, yarp::sig::Vector &value) override
bool getRawButtonCount(unsigned int &button_count) override
bool getRawHat(unsigned int hat_id, unsigned char &value) override
bool getRawAxis(unsigned int axis_id, double &value) override
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool getRawHatCount(unsigned int &hat_count) override
std::vector< int > direction
bool getRawStick(unsigned int stick_id, yarp::sig::Vector &value, JoypadCtrl_coordinateMode coordinate_mode) override
std::vector< unsigned int > axes_ids