FreeStick  0.3
Cross Platform Open Sorce Joystick Lib
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
freestick::FSMFIJoystick Class Reference

#include <FSMFIJoystick.h>

Inheritance diagram for freestick::FSMFIJoystick:
Inheritance graph
[legend]

Public Member Functions

 FSMFIJoystick ()
 
 FSMFIJoystick (void *controller, idNumber joyStickID, unsigned int numberOfButtons, unsigned int numberOfAnlogSticks, unsigned int numberOfDigitalSticks, bool forceFeedBackSupported, vendorIDType vendorID, productIDType productID)
 
bool setElementValue (elementID element, float value)
 
- Public Member Functions inherited from freestick::FSUSBJoystick
 ~FSUSBJoystick ()
 
 FSUSBJoystick (idNumber joyStickID, unsigned int numberOfButtons, unsigned int numberOfAnlogSticks, unsigned int numberOfDigitalSticks, bool forceFeedBackSupported, vendorIDType vendorID, productIDType productID)
 
unsigned int getNumberOfButtons () const
 
unsigned int getNumberOfAnlogSticks () const
 
unsigned int getNumberOfDigitalSticks () const
 
bool getForceFeedbackSupport () const
 
virtual FSDeviceType getClassType () const
 
void addInputElement (FSUSBJoyStickInputElement &element)
 
JoyStickElementMap getElements () const
 
std::vector< idNumbergetElementIds () const
 
const FSUSBJoyStickInputElementfindInputElement (idNumber id) const
 
JoyStickElementMap::const_iterator begin () const
 
JoyStickElementMap::const_iterator end () const
 
JoyStickElementMap::iterator begin ()
 
JoyStickElementMap::iterator end ()
 
- Public Member Functions inherited from freestick::FSUSBDevice
 FSUSBDevice (idNumber id, vendorIDType vendorID, productIDType productID)
 
const std::string getVendorFriendlyName () const
 
const std::string getProductFrendlyName () const
 
vendorIDType getProductID () const
 
productIDType getVendorID () const
 
- Public Member Functions inherited from freestick::FSBaseDevice
virtual idNumber getJoystickID () const
 
const std::string & GetFrendlyName () const
 
 FSBaseDevice (idNumber id)
 
virtual ~FSBaseDevice ()
 

Protected Member Functions

void addButtonElement (unsigned int buttonID)
 
void addElement (unsigned int buttonID, minMaxNumber min, minMaxNumber max, physicalValueNumber currentValue)
 
void addMFIElements ()
 
- Protected Member Functions inherited from freestick::FSUSBJoystick
 FSUSBJoystick ()
 
- Protected Member Functions inherited from freestick::FSUSBDevice
 FSUSBDevice ()
 
- Protected Member Functions inherited from freestick::FSBaseDevice
 FSBaseDevice ()
 
- Protected Member Functions inherited from freestick::IFSDevice
 IFSDevice ()
 
virtual ~IFSDevice ()
 

Protected Attributes

minMaxNumber _totalButtonNumber = 0
 
- Protected Attributes inherited from freestick::FSUSBJoystick
JoyStickElementMap _inputElementMap
 
- Protected Attributes inherited from freestick::FSUSBDevice
vendorIDType _vendorID
 
std::string _vendorIDFriendlyName
 
productIDType _productID
 
std::string _productIDFriendlyName
 
- Protected Attributes inherited from freestick::FSBaseDevice
std::string _friendlyName
 

Additional Inherited Members

- Static Public Member Functions inherited from freestick::FSUSBDevice
static std::string getFrendlyVendorNameFromID (vendorIDType vendorID)
 
static std::string getFrendlyProductNameFromID (vendorIDType vendorID, productIDType productID)
 

Constructor & Destructor Documentation

◆ FSMFIJoystick() [1/2]

FSMFIJoystick::FSMFIJoystick ( )

◆ FSMFIJoystick() [2/2]

FSMFIJoystick::FSMFIJoystick ( void *  controller,
idNumber  joyStickID,
unsigned int  numberOfButtons,
unsigned int  numberOfAnlogSticks,
unsigned int  numberOfDigitalSticks,
bool  forceFeedBackSupported,
vendorIDType  vendorID,
productIDType  productID 
)

Member Function Documentation

◆ addButtonElement()

void FSMFIJoystick::addButtonElement ( unsigned int  buttonID)
protected

◆ addElement()

void FSMFIJoystick::addElement ( unsigned int  buttonID,
minMaxNumber  min,
minMaxNumber  max,
physicalValueNumber  currentValue 
)
protected

◆ addMFIElements()

void FSMFIJoystick::addMFIElements ( )
protected

◆ setElementValue()

bool FSMFIJoystick::setElementValue ( elementID  element,
float  value 
)

Member Data Documentation

◆ _totalButtonNumber

minMaxNumber freestick::FSMFIJoystick::_totalButtonNumber = 0
protected

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