27 #ifndef OVR_HIDDeviceImpl_h
28 #define OVR_HIDDeviceImpl_h
67 switch (messageType) {
87 switch (handlerMessageType) {
178 UByte interfaceVersion = (
UByte) ((versionNumber & 0x000F) >> 0) * 1 +
179 ((versionNumber & 0x00F0) >> 4) * 10;
180 return interfaceVersion;
void CallOnDeviceRemoved(DeviceCreateDesc *desc)
DeviceFactory *const pFactory
bool getFeatureReport(UByte *data, UInt32 length)
HIDDeviceImpl(HIDDeviceCreateDesc *createDesc, DeviceBase *parent)
virtual ThreadCommandQueue * GetThreadQueue()=0
Ptr< DeviceCreateDesc > pCreateDesc
void CallOnDeviceAdded(DeviceCreateDesc *desc)
virtual void OnDeviceMessage(HIDDeviceMessageType messageType)
bool SetFeatureReport(UByte *data, UInt32 length)
Ptr< HIDDevice > InternalDevice
HIDDeviceCreateDesc(DeviceFactory *factory, DeviceType type, const HIDDeviceDesc &hidDesc)
virtual bool Initialize(DeviceBase *parent)
HIDDeviceCreateDesc(const HIDDeviceCreateDesc &other)
HIDDeviceCreateDesc * getCreateDesc() const
HIDDeviceDesc * getHIDDesc() const
MessageHandlerRef HandlerRef
virtual HIDDeviceManager * GetHIDDeviceManager() const
HIDDeviceManager * GetHIDDeviceManager()
bool GetFeatureReport(UByte *data, UInt32 length)
DeviceManager * GetDeviceManager()
DeviceManagerImpl * GetManagerImpl() const
virtual bool MatchDevice(const String &path)
UByte GetDeviceInterfaceVersion()
HIDDevice * GetInternalDevice() const
virtual HIDDevice * Open(const String &path)=0
void Call(const Message &msg)
bool setFeatureReport(UByte *data, UInt32 length)
static int OVR_STDCALL CompareNoCase(const char *a, const char *b)
bool PushCallAndWaitResult(R(C::*fn)(), R *ret)