#include <OSX_Gamepad.h>

Public Member Functions | |
| GamepadManager () | |
| virtual UInt32 | GetGamepadCount () |
| virtual bool | GetGamepadState (UInt32 index, GamepadState *pState) |
| ~GamepadManager () | |
Private Member Functions | |
| int | getIntDeviceProperty (IOHIDDeviceRef device, CFStringRef key) |
| void | manipulateBitField (unsigned int &bitfield, unsigned int mask, bool val) |
| float | mapAnalogAxis (IOHIDValueRef value, IOHIDElementRef element) |
| void | onDeviceMatched (IOHIDDeviceRef device) |
| void | onDeviceRemoved (IOHIDDeviceRef device) |
| void | onDeviceValueChanged (IOHIDValueRef value) |
| bool | setStateIfDifferent (float &state, float newState) |
Static Private Member Functions | |
| static void | staticOnDeviceMatched (void *context, IOReturn result, void *sender, IOHIDDeviceRef device) |
| static void | staticOnDeviceRemoved (void *context, IOReturn result, void *sender, IOHIDDeviceRef device) |
| static void | staticOnDeviceValueChanged (void *context, IOReturn result, void *sender, IOHIDValueRef value) |
Private Attributes | |
| bool | bStateChanged |
| IOHIDManagerRef | HidManager |
| GamepadState | State |
Definition at line 35 of file OSX_Gamepad.h.
Definition at line 37 of file OSX_Gamepad.cpp.
Definition at line 104 of file OSX_Gamepad.cpp.
| UInt32 OVR::Platform::OSX::GamepadManager::GetGamepadCount | ( | ) | [virtual] |
Implements OVR::Platform::GamepadManager.
Definition at line 109 of file OSX_Gamepad.cpp.
| bool OVR::Platform::OSX::GamepadManager::GetGamepadState | ( | UInt32 | index, |
| GamepadState * | pState | ||
| ) | [virtual] |
Implements OVR::Platform::GamepadManager.
Definition at line 114 of file OSX_Gamepad.cpp.
| int OVR::Platform::OSX::GamepadManager::getIntDeviceProperty | ( | IOHIDDeviceRef | device, |
| CFStringRef | key | ||
| ) | [private] |
Definition at line 131 of file OSX_Gamepad.cpp.
| void OVR::Platform::OSX::GamepadManager::manipulateBitField | ( | unsigned int & | bitfield, |
| unsigned int | mask, | ||
| bool | val | ||
| ) | [private] |
Definition at line 412 of file OSX_Gamepad.cpp.
| float OVR::Platform::OSX::GamepadManager::mapAnalogAxis | ( | IOHIDValueRef | value, |
| IOHIDElementRef | element | ||
| ) | [private] |
Definition at line 170 of file OSX_Gamepad.cpp.
| void OVR::Platform::OSX::GamepadManager::onDeviceMatched | ( | IOHIDDeviceRef | device | ) | [private] |
Definition at line 148 of file OSX_Gamepad.cpp.
| void OVR::Platform::OSX::GamepadManager::onDeviceRemoved | ( | IOHIDDeviceRef | device | ) | [private] |
Definition at line 159 of file OSX_Gamepad.cpp.
| void OVR::Platform::OSX::GamepadManager::onDeviceValueChanged | ( | IOHIDValueRef | value | ) | [private] |
Definition at line 199 of file OSX_Gamepad.cpp.
| bool OVR::Platform::OSX::GamepadManager::setStateIfDifferent | ( | float & | state, |
| float | newState | ||
| ) | [private] |
Definition at line 189 of file OSX_Gamepad.cpp.
| void OVR::Platform::OSX::GamepadManager::staticOnDeviceMatched | ( | void * | context, |
| IOReturn | result, | ||
| void * | sender, | ||
| IOHIDDeviceRef | device | ||
| ) | [static, private] |
Definition at line 142 of file OSX_Gamepad.cpp.
| void OVR::Platform::OSX::GamepadManager::staticOnDeviceRemoved | ( | void * | context, |
| IOReturn | result, | ||
| void * | sender, | ||
| IOHIDDeviceRef | device | ||
| ) | [static, private] |
Definition at line 153 of file OSX_Gamepad.cpp.
| void OVR::Platform::OSX::GamepadManager::staticOnDeviceValueChanged | ( | void * | context, |
| IOReturn | result, | ||
| void * | sender, | ||
| IOHIDValueRef | value | ||
| ) | [static, private] |
Definition at line 164 of file OSX_Gamepad.cpp.
bool OVR::Platform::OSX::GamepadManager::bStateChanged [private] |
Definition at line 61 of file OSX_Gamepad.h.
IOHIDManagerRef OVR::Platform::OSX::GamepadManager::HidManager [private] |
Definition at line 59 of file OSX_Gamepad.h.
Definition at line 60 of file OSX_Gamepad.h.