FreeStick  0.3
Cross Platform Open Sorce Joystick Lib
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
freestick::FSXInputJoystick Class Reference

#include <FSXInputJoystick.h>

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

Public Member Functions

 FSXInputJoystick (XINPUT_STATE &state, DWORD id, idNumber joyStickID, unsigned int numberOfButtons, unsigned int numberOfAnlogSticks, unsigned int numberOfDigitalSticks, bool forceFeedBackSupported, long vendorID, long productID, FSUSBJoystickDeviceManager &usbJoystickManager)
 
void addXinputElements (XINPUT_STATE &state)
 
void addButtonElement (unsigned int buttonID)
 
void addElement (unsigned int buttonID, minMaxNumber min, minMaxNumber max, physicalValueNumber currentValue)
 
void setCalibrated ()
 
bool isCalibrated () const
 
- 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 ()
 

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

Constructor & Destructor Documentation

◆ FSXInputJoystick()

FSXInputJoystick::FSXInputJoystick ( XINPUT_STATE &  state,
DWORD  id,
idNumber  joyStickID,
unsigned int  numberOfButtons,
unsigned int  numberOfAnlogSticks,
unsigned int  numberOfDigitalSticks,
bool  forceFeedBackSupported,
long  vendorID,
long  productID,
FSUSBJoystickDeviceManager usbJoystickManager 
)

Member Function Documentation

◆ addButtonElement()

void FSXInputJoystick::addButtonElement ( unsigned int  buttonID)

◆ addElement()

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

◆ addXinputElements()

void FSXInputJoystick::addXinputElements ( XINPUT_STATE &  state)

◆ isCalibrated()

bool FSXInputJoystick::isCalibrated ( ) const

◆ setCalibrated()

void FSXInputJoystick::setCalibrated ( )

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