Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
OVR::Win32::HIDDeviceManager Class Reference

#include <OVR_Win32_HIDDevice.h>

Inheritance diagram for OVR::Win32::HIDDeviceManager:
Inheritance graph
[legend]

List of all members.

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::HIDDeviceOpen (const String &path)
virtual void Shutdown ()
virtual ~HIDDeviceManager ()

Static Public Member Functions

static HIDDeviceManagerCreateInternal (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
DeviceManagerManager

Friends

class HIDDevice

Detailed Description

Definition at line 129 of file OVR_Win32_HIDDevice.h.


Constructor & Destructor Documentation

Definition at line 59 of file OVR_Win32_HIDDevice.cpp.

Definition at line 81 of file OVR_Win32_HIDDevice.cpp.


Member Function Documentation

HANDLE OVR::Win32::HIDDeviceManager::CreateHIDFile ( const char *  path,
bool  exclusiveAccess = true 
) const [inline, private]

Definition at line 177 of file OVR_Win32_HIDDevice.h.

Definition at line 574 of file OVR_Win32_HIDDevice.cpp.

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.

Definition at line 147 of file OVR_Win32_HIDDevice.h.

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.

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]

Definition at line 91 of file OVR_Win32_HIDDevice.cpp.


Friends And Related Function Documentation

friend class HIDDevice [friend]

Definition at line 131 of file OVR_Win32_HIDDevice.h.


Member Data Documentation

Definition at line 155 of file OVR_Win32_HIDDevice.h.

Definition at line 156 of file OVR_Win32_HIDDevice.h.

Definition at line 153 of file OVR_Win32_HIDDevice.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