#include <OVR_Win32_HIDDevice.h>
Public Member Functions | |
bool | GetFeatureReport (UByte *data, UInt32 length) |
HIDDevice (HIDDeviceManager *manager) | |
HIDDevice (HIDDeviceManager *manager, HANDLE device) | |
bool | HIDInitialize (const String &path) |
void | HIDShutdown () |
bool | OnDeviceMessage (DeviceMessageType messageType, const String &devicePath, bool *error) |
void | OnOverlappedEvent (HANDLE hevent) |
UInt64 | OnTicks (UInt64 ticksMks) |
bool | SetFeatureReport (UByte *data, UInt32 length) |
~HIDDevice () | |
Private Types | |
enum | { ReadBufferSize = 96 } |
Private Member Functions | |
void | closeDevice () |
void | closeDeviceOnIOError () |
bool | initializeRead () |
bool | initInfo () |
bool | openDevice () |
bool | processReadResult () |
Private Attributes | |
HIDDeviceDesc | DevDesc |
HANDLE | Device |
UInt16 | FeatureReportBufferLength |
HIDDeviceManager * | HIDManager |
bool | inMinimalMode |
UInt16 | InputReportBufferLength |
UInt16 | OutputReportBufferLength |
UByte | ReadBuffer [ReadBufferSize] |
OVERLAPPED | ReadOverlapped |
bool | ReadRequested |
Definition at line 77 of file OVR_Win32_HIDDevice.h.
anonymous enum [private] |
Definition at line 118 of file OVR_Win32_HIDDevice.h.
OVR::Win32::HIDDevice::HIDDevice | ( | HIDDeviceManager * | manager | ) |
Definition at line 252 of file OVR_Win32_HIDDevice.cpp.
OVR::Win32::HIDDevice::HIDDevice | ( | HIDDeviceManager * | manager, |
HANDLE | device | ||
) |
Definition at line 260 of file OVR_Win32_HIDDevice.cpp.
OVR::Win32::HIDDevice::~HIDDevice | ( | ) | [virtual] |
Reimplemented from OVR::HIDDevice.
Definition at line 266 of file OVR_Win32_HIDDevice.cpp.
void OVR::Win32::HIDDevice::closeDevice | ( | ) | [private] |
Definition at line 467 of file OVR_Win32_HIDDevice.cpp.
void OVR::Win32::HIDDevice::closeDeviceOnIOError | ( | ) | [private] |
Definition at line 484 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDevice::GetFeatureReport | ( | UByte * | data, |
UInt32 | length | ||
) | [virtual] |
Implements OVR::HIDDevice.
Definition at line 498 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDevice::HIDInitialize | ( | const String & | path | ) |
Definition at line 274 of file OVR_Win32_HIDDevice.cpp.
void OVR::Win32::HIDDevice::HIDShutdown | ( | ) |
Definition at line 398 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDevice::initializeRead | ( | ) | [private] |
Definition at line 408 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDevice::initInfo | ( | ) | [private] |
Definition at line 298 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDevice::OnDeviceMessage | ( | DeviceMessageType | messageType, |
const String & | devicePath, | ||
bool * | error | ||
) | [virtual] |
Reimplemented from OVR::Win32::DeviceManagerThread::Notifier.
Definition at line 528 of file OVR_Win32_HIDDevice.cpp.
void OVR::Win32::HIDDevice::OnOverlappedEvent | ( | HANDLE | hevent | ) | [virtual] |
Reimplemented from OVR::Win32::DeviceManagerThread::Notifier.
Definition at line 506 of file OVR_Win32_HIDDevice.cpp.
UInt64 OVR::Win32::HIDDevice::OnTicks | ( | UInt64 | ticksMks | ) | [virtual] |
Reimplemented from OVR::Win32::DeviceManagerThread::Notifier.
Definition at line 518 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDevice::openDevice | ( | ) | [private] |
Definition at line 338 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDevice::processReadResult | ( | ) | [private] |
Definition at line 433 of file OVR_Win32_HIDDevice.cpp.
bool OVR::Win32::HIDDevice::SetFeatureReport | ( | UByte * | data, |
UInt32 | length | ||
) | [virtual] |
Implements OVR::HIDDevice.
Definition at line 490 of file OVR_Win32_HIDDevice.cpp.
HIDDeviceDesc OVR::Win32::HIDDevice::DevDesc [private] |
Definition at line 113 of file OVR_Win32_HIDDevice.h.
HANDLE OVR::Win32::HIDDevice::Device [private] |
Definition at line 112 of file OVR_Win32_HIDDevice.h.
Definition at line 123 of file OVR_Win32_HIDDevice.h.
Definition at line 111 of file OVR_Win32_HIDDevice.h.
bool OVR::Win32::HIDDevice::inMinimalMode [private] |
Definition at line 110 of file OVR_Win32_HIDDevice.h.
Definition at line 121 of file OVR_Win32_HIDDevice.h.
Definition at line 122 of file OVR_Win32_HIDDevice.h.
UByte OVR::Win32::HIDDevice::ReadBuffer[ReadBufferSize] [private] |
Definition at line 119 of file OVR_Win32_HIDDevice.h.
OVERLAPPED OVR::Win32::HIDDevice::ReadOverlapped [private] |
Definition at line 115 of file OVR_Win32_HIDDevice.h.
bool OVR::Win32::HIDDevice::ReadRequested [private] |
Definition at line 116 of file OVR_Win32_HIDDevice.h.