#include <OVR_Win32_HIDDevice.h>
Public Member Functions | |
virtual bool | Enumerate (HIDEnumerateVisitor *enumVisitor) |
bool | GetHIDDeviceDesc (const String &path, HIDDeviceDesc *pdevDesc) const |
GUID | GetHIDGuid () |
HIDDeviceManager (DeviceManager *manager) | |
virtual bool | Initialize () |
virtual OVR::HIDDevice * | Open (const String &path) |
virtual void | Shutdown () |
virtual | ~HIDDeviceManager () |
Static Public Member Functions | |
static HIDDeviceManager * | CreateInternal (DeviceManager *manager) |
Private Member Functions | |
HANDLE | CreateHIDFile (const char *path, bool exclusiveAccess=true) const |
bool | getFullDesc (HANDLE hidDev, HIDDeviceDesc *desc) const |
void | initStrings (HANDLE hidDev, HIDDeviceDesc *desc) const |
bool | initUsage (HANDLE hidDev, HIDDeviceDesc *desc) const |
bool | initVendorProductVersion (HANDLE hidDev, HIDDeviceDesc *desc) const |
OVR_DECLARE_HIDFUNC (HidD_GetHidGuid, void,(GUID *hidGuid)) | |
OVR_DECLARE_HIDFUNC (HidD_SetNumInputBuffers, BOOLEAN,(HANDLE hidDev, ULONG numberBuffers)) | |
OVR_DECLARE_HIDFUNC (HidD_GetFeature, BOOLEAN,(HANDLE hidDev, PVOID buffer, ULONG bufferLength)) | |
OVR_DECLARE_HIDFUNC (HidD_SetFeature, BOOLEAN,(HANDLE hidDev, PVOID buffer, ULONG bufferLength)) | |
OVR_DECLARE_HIDFUNC (HidD_GetAttributes, BOOLEAN,(HANDLE hidDev, HIDD_ATTRIBUTES *attributes)) | |
OVR_DECLARE_HIDFUNC (HidD_GetManufacturerString, BOOLEAN,(HANDLE hidDev, PVOID buffer, ULONG bufferLength)) | |
OVR_DECLARE_HIDFUNC (HidD_GetProductString, BOOLEAN,(HANDLE hidDev, PVOID buffer, ULONG bufferLength)) | |
OVR_DECLARE_HIDFUNC (HidD_GetSerialNumberString, BOOLEAN,(HANDLE hidDev, PVOID buffer, ULONG bufferLength)) | |
OVR_DECLARE_HIDFUNC (HidD_GetPreparsedData, BOOLEAN,(HANDLE hidDev, HIDP_PREPARSED_DATA **preparsedData)) | |
OVR_DECLARE_HIDFUNC (HidD_FreePreparsedData, BOOLEAN,(HIDP_PREPARSED_DATA *preparsedData)) | |
OVR_DECLARE_HIDFUNC (HidP_GetCaps, NTSTATUS,(HIDP_PREPARSED_DATA *preparsedData, HIDP_CAPS *caps)) | |
Private Attributes | |
HMODULE | hHidLib |
GUID | HidGuid |
DeviceManager * | Manager |
Friends | |
class | HIDDevice |
Definition at line 129 of file OVR_Win32_HIDDevice.h.
Definition at line 59 of file OVR_Win32_HIDDevice.cpp.
OVR::Win32::HIDDeviceManager::~HIDDeviceManager | ( | ) | [virtual] |
Definition at line 81 of file OVR_Win32_HIDDevice.cpp.
HANDLE OVR::Win32::HIDDeviceManager::CreateHIDFile | ( | const char * | path, |
bool | exclusiveAccess = true |
||
) | const [inline, private] |
Definition at line 177 of file OVR_Win32_HIDDevice.h.
HIDDeviceManager * OVR::Win32::HIDDeviceManager::CreateInternal | ( | Win32::DeviceManager * | devManager | ) | [static] |
Definition at line 574 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDeviceManager::Enumerate | ( | HIDEnumerateVisitor * | enumVisitor | ) | [virtual] |
Implements OVR::HIDDeviceManager.
Definition at line 96 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDeviceManager::getFullDesc | ( | HANDLE | hidDev, |
HIDDeviceDesc * | desc | ||
) | const [private] |
Definition at line 180 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDeviceManager::GetHIDDeviceDesc | ( | const String & | path, |
HIDDeviceDesc * | pdevDesc | ||
) | const |
Definition at line 152 of file OVR_Win32_HIDDevice.cpp.
GUID OVR::Win32::HIDDeviceManager::GetHIDGuid | ( | ) | [inline] |
Definition at line 147 of file OVR_Win32_HIDDevice.h.
bool OVR::Win32::HIDDeviceManager::Initialize | ( | ) | [virtual] |
Definition at line 86 of file OVR_Win32_HIDDevice.cpp.
void OVR::Win32::HIDDeviceManager::initStrings | ( | HANDLE | hidDev, |
HIDDeviceDesc * | desc | ||
) | const [private] |
Definition at line 229 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDeviceManager::initUsage | ( | HANDLE | hidDev, |
HIDDeviceDesc * | desc | ||
) | const [private] |
Definition at line 210 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDeviceManager::initVendorProductVersion | ( | HANDLE | hidDev, |
HIDDeviceDesc * | desc | ||
) | const [private] |
Definition at line 198 of file OVR_Win32_HIDDevice.cpp.
OVR::HIDDevice * OVR::Win32::HIDDeviceManager::Open | ( | const String & | path | ) | [virtual] |
Implements OVR::HIDDeviceManager.
Definition at line 166 of file OVR_Win32_HIDDevice.cpp.
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_GetHidGuid | , |
void | , | ||
(GUID *hidGuid) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_SetNumInputBuffers | , |
BOOLEAN | , | ||
(HANDLE hidDev, ULONG numberBuffers) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_GetFeature | , |
BOOLEAN | , | ||
(HANDLE hidDev, PVOID buffer, ULONG bufferLength) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_SetFeature | , |
BOOLEAN | , | ||
(HANDLE hidDev, PVOID buffer, ULONG bufferLength) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_GetAttributes | , |
BOOLEAN | , | ||
(HANDLE hidDev, HIDD_ATTRIBUTES *attributes) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_GetManufacturerString | , |
BOOLEAN | , | ||
(HANDLE hidDev, PVOID buffer, ULONG bufferLength) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_GetProductString | , |
BOOLEAN | , | ||
(HANDLE hidDev, PVOID buffer, ULONG bufferLength) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_GetSerialNumberString | , |
BOOLEAN | , | ||
(HANDLE hidDev, PVOID buffer, ULONG bufferLength) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_GetPreparsedData | , |
BOOLEAN | , | ||
(HANDLE hidDev, HIDP_PREPARSED_DATA **preparsedData) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidD_FreePreparsedData | , |
BOOLEAN | , | ||
(HIDP_PREPARSED_DATA *preparsedData) | |||
) | [private] |
OVR::Win32::HIDDeviceManager::OVR_DECLARE_HIDFUNC | ( | HidP_GetCaps | , |
NTSTATUS | , | ||
(HIDP_PREPARSED_DATA *preparsedData, HIDP_CAPS *caps) | |||
) | [private] |
void OVR::Win32::HIDDeviceManager::Shutdown | ( | ) | [virtual] |
Definition at line 91 of file OVR_Win32_HIDDevice.cpp.
friend class HIDDevice [friend] |
Definition at line 131 of file OVR_Win32_HIDDevice.h.
HMODULE OVR::Win32::HIDDeviceManager::hHidLib [private] |
Definition at line 155 of file OVR_Win32_HIDDevice.h.
GUID OVR::Win32::HIDDeviceManager::HidGuid [private] |
Definition at line 156 of file OVR_Win32_HIDDevice.h.
Definition at line 153 of file OVR_Win32_HIDDevice.h.