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

#include <FSUSBJoystickButton.h>

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

Public Member Functions

 FSUSBJoystickButton (FSDeviceInput inputMapping)
 
virtual FSDeviceInput getMapping ()
 
- Public Member Functions inherited from freestick::FSUSBJoyStickInputElement
 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

 FSUSBJoystickButton ()
 
- Protected Member Functions inherited from freestick::FSUSBJoyStickInputElement
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

◆ FSUSBJoystickButton() [1/2]

FSUSBJoystickButton::FSUSBJoystickButton ( )
protected

◆ FSUSBJoystickButton() [2/2]

freestick::FSUSBJoystickButton::FSUSBJoystickButton ( FSDeviceInput  inputMapping)

Member Function Documentation

◆ getMapping()

virtual FSDeviceInput freestick::FSUSBJoystickButton::getMapping ( )
inlinevirtual

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