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

#include <FSUSBJoyStickInputElement.h>

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

Public Member Functions

 FSUSBJoyStickInputElement ()
 
 FSUSBJoyStickInputElement (unsigned int id, unsigned int parentID, minMaxNumber elementMin, minMaxNumber elementMax, vendorIDType vendorID, productIDType productID, FSUSBDeviceManager &_manager, physicalValueNumber currentValue, minMaxNumber buttonNumber)
 
 FSUSBJoyStickInputElement (unsigned int id, unsigned int parentID, minMaxNumber elementMin, minMaxNumber elementMax, vendorIDType vendorID, productIDType productID, FSUSBDeviceManager *_manager, physicalValueNumber currentValue, minMaxNumber buttonNumber)
 
void getMapping (int inputValue, std::stack< FSUSBElementInfoMap > &infoMapsToReturn)
 
minMaxNumber getValue () const
 
void setValue (minMaxNumber newValue)
 
minMaxNumber getOldValue () const
 
bool isValueInDeadZone (minMaxNumber value)
 
bool isIntialized ()
 
minMaxNumber getMaxValue () const
 
minMaxNumber getMinValue () const
 
minMaxNumber getDeadZoneMin () const
 
minMaxNumber getDeadZoneMax () const
 
minMaxNumber getButtonNumber () const
 
void recalibrate (physicalValueNumber currentValue, minMaxNumber elementMin, minMaxNumber elementMax)
 
uint16_t getHIDUsage ()
 
uint16_t getHIDUsagePage ()
 
void setCalibrationOffsetPrecent (float offset)
 
- Public Member Functions inherited from freestick::FSUSBDevice
 FSUSBDevice (idNumber id, vendorIDType vendorID, productIDType productID)
 
virtual FSDeviceType getClassType () const
 
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 calibrate (physicalValueNumber currentValue, minMaxNumber elementMin, minMaxNumber elementMax)
 
void EmptyQue (std::stack< FSUSBElementInfoMap > &infoMapsToReturn, unsigned int sizeToleft)
 
- 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 ()
 

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)
 
- 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
 

Constructor & Destructor Documentation

◆ FSUSBJoyStickInputElement() [1/3]

FSUSBJoyStickInputElement::FSUSBJoyStickInputElement ( )

◆ FSUSBJoyStickInputElement() [2/3]

freestick::FSUSBJoyStickInputElement::FSUSBJoyStickInputElement ( unsigned int  id,
unsigned int  parentID,
minMaxNumber  elementMin,
minMaxNumber  elementMax,
vendorIDType  vendorID,
productIDType  productID,
FSUSBDeviceManager _manager,
physicalValueNumber  currentValue,
minMaxNumber  buttonNumber 
)

◆ FSUSBJoyStickInputElement() [3/3]

freestick::FSUSBJoyStickInputElement::FSUSBJoyStickInputElement ( unsigned int  id,
unsigned int  parentID,
minMaxNumber  elementMin,
minMaxNumber  elementMax,
vendorIDType  vendorID,
productIDType  productID,
FSUSBDeviceManager _manager,
physicalValueNumber  currentValue,
minMaxNumber  buttonNumber 
)

Member Function Documentation

◆ calibrate()

void FSUSBJoyStickInputElement::calibrate ( physicalValueNumber  currentValue,
minMaxNumber  elementMin,
minMaxNumber  elementMax 
)
protected

◆ EmptyQue()

void FSUSBJoyStickInputElement::EmptyQue ( std::stack< FSUSBElementInfoMap > &  infoMapsToReturn,
unsigned int  sizeToleft 
)
protected

◆ getButtonNumber()

minMaxNumber freestick::FSUSBJoyStickInputElement::getButtonNumber ( ) const
inline

◆ getDeadZoneMax()

minMaxNumber freestick::FSUSBJoyStickInputElement::getDeadZoneMax ( ) const
inline

◆ getDeadZoneMin()

minMaxNumber freestick::FSUSBJoyStickInputElement::getDeadZoneMin ( ) const
inline

◆ getHIDUsage()

uint16_t freestick::FSUSBJoyStickInputElement::getHIDUsage ( )

◆ getHIDUsagePage()

uint16_t freestick::FSUSBJoyStickInputElement::getHIDUsagePage ( )

◆ getMapping()

void FSUSBJoyStickInputElement::getMapping ( int  inputValue,
std::stack< FSUSBElementInfoMap > &  infoMapsToReturn 
)

◆ getMaxValue()

minMaxNumber freestick::FSUSBJoyStickInputElement::getMaxValue ( ) const
inline

◆ getMinValue()

minMaxNumber freestick::FSUSBJoyStickInputElement::getMinValue ( ) const
inline

◆ getOldValue()

minMaxNumber freestick::FSUSBJoyStickInputElement::getOldValue ( ) const
inline

◆ getValue()

minMaxNumber freestick::FSUSBJoyStickInputElement::getValue ( ) const
inline

◆ isIntialized()

bool FSUSBJoyStickInputElement::isIntialized ( )

◆ isValueInDeadZone()

bool FSUSBJoyStickInputElement::isValueInDeadZone ( minMaxNumber  value)

◆ recalibrate()

void FSUSBJoyStickInputElement::recalibrate ( physicalValueNumber  currentValue,
minMaxNumber  elementMin,
minMaxNumber  elementMax 
)

◆ setCalibrationOffsetPrecent()

void FSUSBJoyStickInputElement::setCalibrationOffsetPrecent ( float  offset)

◆ setValue()

void FSUSBJoyStickInputElement::setValue ( minMaxNumber  newValue)

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