27 #ifndef OVR_LatencyTestImpl_h
28 #define OVR_LatencyTestImpl_h
34 struct LatencyTestSamplesMessage;
35 struct LatencyTestButtonMessage;
36 struct LatencyTestStartedMessage;
37 struct LatencyTestColorDetectedMessage;
121 bool openDevice(
const char** errorFormatString);
144 #endif // OVR_LatencyTestImpl_h
virtual bool SetCalibrate(const Color &calibrationColor, bool waitFlag=false)
DeviceFactory *const pFactory
void onLatencyTestColorDetectedMessage(LatencyTestColorDetectedMessage *message)
virtual DeviceBase * NewDeviceInstance()
bool setCalibrate(const Color &calibrationColor)
bool setConfiguration(const OVR::LatencyTestConfiguration &configuration)
virtual bool DetectHIDDevice(DeviceManager *pdevMgr, const HIDDeviceDesc &desc)
virtual void EnumerateDevices(EnumerateVisitor &visitor)
void onLatencyTestStartedMessage(LatencyTestStartedMessage *message)
static LatencyTestDeviceFactory & GetInstance()
LatencyTestDeviceCreateDesc(DeviceFactory *factory, const HIDDeviceDesc &hidDesc)
virtual bool MatchHIDDevice(const HIDDeviceDesc &hidDesc) const
void onLatencyTestSamplesMessage(LatencyTestSamplesMessage *message)
virtual MatchResult MatchDevice(const DeviceCreateDesc &other, DeviceCreateDesc **) const
bool setDisplay(const OVR::LatencyTestDisplay &display)
void onLatencyTestButtonMessage(LatencyTestButtonMessage *message)
DeviceManager * getManager() const
virtual bool SetStartTest(const Color &targetColor, bool waitFlag=false)
LatencyTestDeviceImpl(LatencyTestDeviceCreateDesc *createDesc)
virtual bool GetDeviceInfo(DeviceInfo *info) const
DeviceManagerImpl * pManager
virtual bool SetDisplay(const LatencyTestDisplay &display, bool waitFlag=false)
bool getConfiguration(OVR::LatencyTestConfiguration *configuration)
virtual void OnInputReport(UByte *pData, UInt32 length)
virtual DeviceCreateDesc * Clone() const
virtual bool MatchVendorProduct(UInt16 vendorId, UInt16 productId) const
bool setStartTest(const Color &targetColor)
bool openDevice(const char **errorFormatString)
virtual bool GetConfiguration(OVR::LatencyTestConfiguration *configuration)
void closeDeviceOnIOError()
virtual bool SetConfiguration(const OVR::LatencyTestConfiguration &configuration, bool waitFlag=false)
virtual bool Initialize(DeviceBase *parent)
static int OVR_STDCALL CompareNoCase(const char *a, const char *b)