#include <OVR_Linux_HIDDevice.h>
Public Member Functions | |
virtual bool | Enumerate (HIDEnumerateVisitor *enumVisitor) |
HIDDeviceManager (Linux::DeviceManager *Manager) | |
virtual bool | Initialize () |
void | OnEvent (int i, int fd) |
virtual OVR::HIDDevice * | Open (const String &path) |
virtual void | Shutdown () |
virtual | ~HIDDeviceManager () |
Static Public Member Functions | |
static HIDDeviceManager * | CreateInternal (DeviceManager *manager) |
Private Member Functions | |
bool | AddNotificationDevice (HIDDevice *device) |
bool | GetDescriptorFromPath (const char *dev_path, HIDDeviceDesc *desc) |
bool | getFullDesc (udev_device *device, HIDDeviceDesc *desc) |
bool | getIntProperty (udev_device *device, const char *key, int32_t *pResult) |
bool | getPath (udev_device *device, String *pPath) |
bool | getStringProperty (udev_device *device, const char *propertyName, OVR::String *pResult) |
bool | initializeManager () |
bool | initVendorProductVersion (udev_device *device, HIDDeviceDesc *pDevDesc) |
bool | RemoveNotificationDevice (HIDDevice *device) |
Private Attributes | |
DeviceManager * | DevManager |
int | HIDMonHandle |
udev_monitor * | HIDMonitor |
Array< HIDDevice * > | NotificationDevices |
udev * | UdevInstance |
Friends | |
class | HIDDevice |
Definition at line 81 of file OVR_Linux_HIDDevice.h.
Definition at line 30 of file OVR_Linux_HIDDevice.cpp.
OVR::Linux::HIDDeviceManager::~HIDDeviceManager | ( | ) | [virtual] |
Definition at line 38 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::AddNotificationDevice | ( | HIDDevice * | device | ) | [private] |
Definition at line 124 of file OVR_Linux_HIDDevice.cpp.
HIDDeviceManager * OVR::Linux::HIDDeviceManager::CreateInternal | ( | Linux::DeviceManager * | devManager | ) | [static] |
Definition at line 736 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::Enumerate | ( | HIDEnumerateVisitor * | enumVisitor | ) | [virtual] |
Implements OVR::HIDDeviceManager.
Definition at line 198 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::GetDescriptorFromPath | ( | const char * | dev_path, |
HIDDeviceDesc * | desc | ||
) | [private] |
Definition at line 304 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::getFullDesc | ( | udev_device * | device, |
HIDDeviceDesc * | desc | ||
) | [private] |
Definition at line 284 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::getIntProperty | ( | udev_device * | device, |
const char * | key, | ||
int32_t * | pResult | ||
) | [private] |
Definition at line 145 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::getPath | ( | udev_device * | device, |
String * | pPath | ||
) | [private] |
bool OVR::Linux::HIDDeviceManager::getStringProperty | ( | udev_device * | device, |
const char * | propertyName, | ||
OVR::String * | pResult | ||
) | [private] |
Definition at line 180 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::Initialize | ( | ) | [virtual] |
Definition at line 92 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::initializeManager | ( | ) | [private] |
Definition at line 43 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::initVendorProductVersion | ( | udev_device * | device, |
HIDDeviceDesc * | pDevDesc | ||
) | [private] |
Definition at line 163 of file OVR_Linux_HIDDevice.cpp.
void OVR::Linux::HIDDeviceManager::OnEvent | ( | int | i, |
int | fd | ||
) | [virtual] |
Implements OVR::Linux::DeviceManagerThread::Notifier.
Definition at line 354 of file OVR_Linux_HIDDevice.cpp.
OVR::HIDDevice * OVR::Linux::HIDDeviceManager::Open | ( | const String & | path | ) | [virtual] |
Implements OVR::HIDDeviceManager.
Definition at line 270 of file OVR_Linux_HIDDevice.cpp.
bool OVR::Linux::HIDDeviceManager::RemoveNotificationDevice | ( | HIDDevice * | device | ) | [private] |
Definition at line 131 of file OVR_Linux_HIDDevice.cpp.
void OVR::Linux::HIDDeviceManager::Shutdown | ( | ) | [virtual] |
Definition at line 104 of file OVR_Linux_HIDDevice.cpp.
friend class HIDDevice [friend] |
Definition at line 83 of file OVR_Linux_HIDDevice.h.
Definition at line 113 of file OVR_Linux_HIDDevice.h.
int OVR::Linux::HIDDeviceManager::HIDMonHandle [private] |
Definition at line 117 of file OVR_Linux_HIDDevice.h.
udev_monitor* OVR::Linux::HIDDeviceManager::HIDMonitor [private] |
Definition at line 116 of file OVR_Linux_HIDDevice.h.
Definition at line 119 of file OVR_Linux_HIDDevice.h.
udev* OVR::Linux::HIDDeviceManager::UdevInstance [private] |
Definition at line 115 of file OVR_Linux_HIDDevice.h.