14 size_t num_of_axes = 0;
20 for (
size_t i = 0; i < num_of_axes; i++)
24 values.push_back(value);
virtual yarp::dev::ReturnValue getAxisCount(size_t &axis_count)=0
Get number of axes.
virtual ~IJoypadController()
Destructor.
virtual yarp::dev::ReturnValue getAllAxes(std::vector< double > &values)
Get the values of all available joystick axes.
virtual yarp::dev::ReturnValue getAxis(size_t axis_id, double &value)=0
Get the value of an axis if present, return false otherwise.
For streams capable of holding different kinds of content, check what they actually have.