Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
OVR::Platform::OSX::GamepadManager Class Reference

#include <OSX_Gamepad.h>

Inheritance diagram for OVR::Platform::OSX::GamepadManager:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 35 of file OSX_Gamepad.h.


Constructor & Destructor Documentation

Definition at line 37 of file OSX_Gamepad.cpp.

Definition at line 104 of file OSX_Gamepad.cpp.


Member Function Documentation

Implements OVR::Platform::GamepadManager.

Definition at line 109 of file OSX_Gamepad.cpp.

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.


Member Data Documentation

Definition at line 61 of file OSX_Gamepad.h.

Definition at line 59 of file OSX_Gamepad.h.

Definition at line 60 of file OSX_Gamepad.h.


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


oculus_sdk
Author(s):
autogenerated on Mon Oct 6 2014 03:01:21