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

#include <FSUSBMacOSXJoystick.h>

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

Public Member Functions

 FSUSBMacOSXJoystick (IOHIDDeviceRef device, idNumber joyStickID, unsigned int numberOfButtons, unsigned int numberOfAnlogSticks, unsigned int numberOfDigitalSticks, bool forceFeedBackSupported)
 
unsigned int Init (FSUSBJoystickDeviceManager &usbJoystickManager)
 
virtual ~FSUSBMacOSXJoystick ()
 
IOHIDDeviceRef GetIOHIDDeviceRef () const
 
virtual FSDeviceType getClassType () 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
 
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 ()
 

Static Public Member Functions

static std::string CFStringRefToString (CFStringRef refString)
 
static std::string getManufactureName (IOHIDDeviceRef device)
 
- 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

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

Additional Inherited Members

- 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

◆ FSUSBMacOSXJoystick() [1/2]

FSUSBMacOSXJoystick::FSUSBMacOSXJoystick ( )
protected

◆ FSUSBMacOSXJoystick() [2/2]

FSUSBMacOSXJoystick::FSUSBMacOSXJoystick ( IOHIDDeviceRef  device,
idNumber  joyStickID,
unsigned int  numberOfButtons,
unsigned int  numberOfAnlogSticks,
unsigned int  numberOfDigitalSticks,
bool  forceFeedBackSupported 
)

◆ ~FSUSBMacOSXJoystick()

FSUSBMacOSXJoystick::~FSUSBMacOSXJoystick ( )
virtual

Member Function Documentation

◆ CFStringRefToString()

std::string FSUSBMacOSXJoystick::CFStringRefToString ( CFStringRef  refString)
static

◆ getClassType()

virtual FSDeviceType freestick::FSUSBMacOSXJoystick::getClassType ( ) const
inlinevirtual

Reimplemented from freestick::FSUSBJoystick.

◆ GetIOHIDDeviceRef()

IOHIDDeviceRef freestick::FSUSBMacOSXJoystick::GetIOHIDDeviceRef ( ) const
inline

◆ getManufactureName()

std::string FSUSBMacOSXJoystick::getManufactureName ( IOHIDDeviceRef  device)
static

◆ Init()

unsigned int FSUSBMacOSXJoystick::Init ( FSUSBJoystickDeviceManager usbJoystickManager)

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