#include <src/ois/mac/MacHIDManager.h>
Public Member Functions | |
Object * | createObject (InputManager *creator, Type iType, bool bufferMode, const std::string &vendor="") |
void | destroyObject (Object *obj) |
DeviceList | freeDeviceList () |
int | freeDevices (Type iType) |
void | initialize () |
MacHIDManager () | |
int | totalDevices (Type iType) |
bool | vendorExist (Type iType, const std::string &vendor) |
~MacHIDManager () | |
Private Member Functions | |
HidInfo * | enumerateDeviceProperties (CFMutableDictionaryRef propertyMap) |
void | parseDeviceProperties (CFDictionaryRef properties) |
void | parseDevicePropertiesGroup (CFDictionaryRef properties) |
Private Attributes | |
HidInfoList | mDeviceList |
MacHIDManager::MacHIDManager | ( | ) |
MacHIDManager::~MacHIDManager | ( | ) |
Object * MacHIDManager::createObject | ( | InputManager * | creator, | |
Type | iType, | |||
bool | bufferMode, | |||
const std::string & | vendor = "" | |||
) | [virtual] |
iType | Type to create | |
bufferMode | True to setup for buffered events | |
vendor | Create a device with the vendor name, "" means vendor name is unimportant |
Implements OIS::FactoryCreator.
References OIS::E_InputDeviceNonExistant, mDeviceList, and OIS_EXCEPT.
void MacHIDManager::destroyObject | ( | Object * | obj | ) | [virtual] |
HidInfo * MacHIDManager::enumerateDeviceProperties | ( | CFMutableDictionaryRef | propertyMap | ) | [private] |
References OIS::HidInfo::combinedKey, OIS::OISJoyStick, parseDeviceProperties(), OIS::HidInfo::productKey, OIS::HidInfo::type, and OIS::HidInfo::vendor.
Referenced by initialize().
DeviceList MacHIDManager::freeDeviceList | ( | ) | [virtual] |
int MacHIDManager::freeDevices | ( | Type | iType | ) | [virtual] |
iType | Type of devices to check |
Implements OIS::FactoryCreator.
References mDeviceList.
void MacHIDManager::initialize | ( | ) |
Testing opening / closing interface
References OIS::E_General, enumerateDeviceProperties(), mDeviceList, and OIS_EXCEPT.
Referenced by OIS::MacInputManager::_initialize().
void MacHIDManager::parseDeviceProperties | ( | CFDictionaryRef | properties | ) | [private] |
void MacHIDManager::parseDevicePropertiesGroup | ( | CFDictionaryRef | properties | ) | [private] |
int MacHIDManager::totalDevices | ( | Type | iType | ) | [virtual] |
iType | Type of devices to check |
Implements OIS::FactoryCreator.
References mDeviceList.
bool MacHIDManager::vendorExist | ( | Type | iType, | |
const std::string & | vendor | |||
) | [virtual] |
iType | Type to check | |
vendor | Vendor name to test |
Implements OIS::FactoryCreator.
References mDeviceList.
HidInfoList OIS::MacHIDManager::mDeviceList [private] |
Referenced by createObject(), freeDeviceList(), freeDevices(), initialize(), totalDevices(), and vendorExist().