#include <OVR_Linux_HIDDevice.h>

Public Member Functions | |
| virtual bool | GetFeatureReport (UByte *data, UInt32 length) |
| HIDDevice (HIDDeviceManager *manager) | |
| HIDDevice (HIDDeviceManager *manager, int device_handle) | |
| bool | HIDInitialize (const String &path) |
| void | HIDShutdown () |
| bool | OnDeviceNotification (MessageType messageType, HIDDeviceDesc *device_info, bool *error) |
| void | OnEvent (int i, int fd) |
| UInt64 | OnTicks (UInt64 ticksMks) |
| virtual bool | SetFeatureReport (UByte *data, UInt32 length) |
| virtual | ~HIDDevice () |
Private Types | |
| enum | { ReadBufferSize = 96 } |
Private Member Functions | |
| void | closeDevice (bool wasUnplugged) |
| void | closeDeviceOnIOError () |
| bool | initInfo () |
| bool | openDevice (const char *dev_path) |
| bool | setupDevicePluggedInNotification () |
Private Attributes | |
| HIDDeviceDesc | DevDesc |
| int | DeviceHandle |
| UInt16 | FeatureReportBufferLength |
| HIDDeviceManager * | HIDManager |
| bool | InMinimalMode |
| UInt16 | InputReportBufferLength |
| UInt16 | OutputReportBufferLength |
| UByte | ReadBuffer [ReadBufferSize] |
Friends | |
| class | HIDDeviceManager |
Definition at line 29 of file OVR_Linux_HIDDevice.h.
anonymous enum [private] |
Definition at line 69 of file OVR_Linux_HIDDevice.h.
| OVR::Linux::HIDDevice::HIDDevice | ( | HIDDeviceManager * | manager | ) |
Definition at line 417 of file OVR_Linux_HIDDevice.cpp.
| OVR::Linux::HIDDevice::HIDDevice | ( | HIDDeviceManager * | manager, |
| int | device_handle | ||
| ) |
Definition at line 426 of file OVR_Linux_HIDDevice.cpp.
| OVR::Linux::HIDDevice::~HIDDevice | ( | ) | [virtual] |
Reimplemented from OVR::HIDDevice.
Definition at line 432 of file OVR_Linux_HIDDevice.cpp.
| void OVR::Linux::HIDDevice::closeDevice | ( | bool | wasUnplugged | ) | [private] |
Definition at line 593 of file OVR_Linux_HIDDevice.cpp.
| void OVR::Linux::HIDDevice::closeDeviceOnIOError | ( | ) | [private] |
Definition at line 607 of file OVR_Linux_HIDDevice.cpp.
| bool OVR::Linux::HIDDevice::GetFeatureReport | ( | UByte * | data, |
| UInt32 | length | ||
| ) | [virtual] |
Implements OVR::HIDDevice.
Definition at line 634 of file OVR_Linux_HIDDevice.cpp.
| bool OVR::Linux::HIDDevice::HIDInitialize | ( | const String & | path | ) |
Definition at line 441 of file OVR_Linux_HIDDevice.cpp.
| void OVR::Linux::HIDDevice::HIDShutdown | ( | ) |
Definition at line 578 of file OVR_Linux_HIDDevice.cpp.
| bool OVR::Linux::HIDDevice::initInfo | ( | ) | [private] |
Definition at line 463 of file OVR_Linux_HIDDevice.cpp.
| bool OVR::Linux::HIDDevice::OnDeviceNotification | ( | MessageType | messageType, |
| HIDDeviceDesc * | device_info, | ||
| bool * | error | ||
| ) |
Definition at line 674 of file OVR_Linux_HIDDevice.cpp.
| void OVR::Linux::HIDDevice::OnEvent | ( | int | i, |
| int | fd | ||
| ) | [virtual] |
Implements OVR::Linux::DeviceManagerThread::Notifier.
Definition at line 655 of file OVR_Linux_HIDDevice.cpp.
| UInt64 OVR::Linux::HIDDevice::OnTicks | ( | UInt64 | ticksMks | ) | [virtual] |
Reimplemented from OVR::Linux::DeviceManagerThread::Notifier.
Definition at line 644 of file OVR_Linux_HIDDevice.cpp.
| bool OVR::Linux::HIDDevice::openDevice | ( | const char * | dev_path | ) | [private] |
Definition at line 537 of file OVR_Linux_HIDDevice.cpp.
| bool OVR::Linux::HIDDevice::SetFeatureReport | ( | UByte * | data, |
| UInt32 | length | ||
| ) | [virtual] |
Implements OVR::HIDDevice.
Definition at line 614 of file OVR_Linux_HIDDevice.cpp.
| bool OVR::Linux::HIDDevice::setupDevicePluggedInNotification | ( | ) | [private] |
friend class HIDDeviceManager [friend] |
Definition at line 32 of file OVR_Linux_HIDDevice.h.
HIDDeviceDesc OVR::Linux::HIDDevice::DevDesc [private] |
Definition at line 67 of file OVR_Linux_HIDDevice.h.
int OVR::Linux::HIDDevice::DeviceHandle [private] |
Definition at line 66 of file OVR_Linux_HIDDevice.h.
Definition at line 74 of file OVR_Linux_HIDDevice.h.
Definition at line 65 of file OVR_Linux_HIDDevice.h.
bool OVR::Linux::HIDDevice::InMinimalMode [private] |
Definition at line 64 of file OVR_Linux_HIDDevice.h.
Definition at line 72 of file OVR_Linux_HIDDevice.h.
Definition at line 73 of file OVR_Linux_HIDDevice.h.
UByte OVR::Linux::HIDDevice::ReadBuffer[ReadBufferSize] [private] |
Definition at line 70 of file OVR_Linux_HIDDevice.h.