yarp-devices
Loading...
Searching...
No Matches
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
Wiimote Class Reference

Implementation for the Wiimote controller.

#include <Wiimote.hpp>

Inheritance diagram for Wiimote:
Wiimote_ParamsParser

Public Member Functions

bool open (yarp::os::Searchable &config) override
 
bool close () override
 
bool getAxisCount (unsigned int &axis_count) override
 
bool getButtonCount (unsigned int &button_count) override
 
bool getTrackballCount (unsigned int &trackball_count) override
 
bool getHatCount (unsigned int &hat_count) override
 
bool getTouchSurfaceCount (unsigned int &touch_count) override
 
bool getStickCount (unsigned int &stick_count) override
 
bool getStickDoF (unsigned int stick_id, unsigned int &DoF) override
 
bool getButton (unsigned int button_id, float &value) override
 
bool getTrackball (unsigned int trackball_id, yarp::sig::Vector &value) override
 
bool getHat (unsigned int hat_id, unsigned char &value) override
 
bool getAxis (unsigned int axis_id, double &value) override
 
bool getStick (unsigned int stick_id, yarp::sig::Vector &value, yarp::dev::IJoypadController::JoypadCtrl_coordinateMode coordinate_mode) override
 
bool getTouch (unsigned int touch_id, yarp::sig::Vector &value) override
 
- Public Member Functions inherited from Wiimote_ParamsParser
bool parseParams (const yarp::os::Searchable &config) override
 
std::string getDeviceClassName () const override
 
std::string getDeviceName () const override
 
std::string getDocumentationOfDeviceParams () const override
 
std::vector< std::string > getListOfParams () const override
 

Static Private Member Functions

static char * getDevicePath (int id)
 

Private Attributes

struct xwii_iface * iface {nullptr}
 
WiimoteDispatcherThread dispatcherThread
 

Additional Inherited Members

- Public Attributes inherited from Wiimote_ParamsParser
const std::string m_device_classname = {"Wiimote"}
 
const std::string m_device_name = {"Wiimote"}
 
bool m_parser_is_strict = false
 
const parser_version_type m_parser_version = {}
 
const std::string m_deviceId_defaultValue = {"1"}
 
const std::string m_calibZeroX_defaultValue = {"-30"}
 
const std::string m_calibZeroY_defaultValue = {"-22"}
 
const std::string m_calibZeroZ_defaultValue = {"72"}
 
const std::string m_calibOneX_defaultValue = {"69"}
 
const std::string m_calibOneY_defaultValue = {"-123"}
 
const std::string m_calibOneZ_defaultValue = {"-25"}
 
int m_deviceId = {1}
 
int m_calibZeroX = {-30}
 
int m_calibZeroY = {-22}
 
int m_calibZeroZ = {72}
 
int m_calibOneX = {69}
 
int m_calibOneY = {-123}
 
int m_calibOneZ = {-25}
 

The documentation for this class was generated from the following files: