39 namespace OVR {
namespace Linux {
69 LogText(
"OVR::DeviceManager - initialized.\n");
75 LogText(
"OVR::DeviceManager - shutting down.\n");
90 pThread->PushExitCommand(
false);
156 pfd.events = POLLIN|POLLHUP|POLLERR;
213 unsigned waitAllowed;
218 if (waitAllowed < (
unsigned)waitMs)
219 waitMs = waitAllowed;
235 if (
PollFds[i].revents & POLLERR)
239 else if (
PollFds[i].revents & POLLIN)
246 read(
PollFds[i].fd, dummy, 128);
251 if (
PollFds[i].revents & POLLHUP)
303 LogMessage(
Log_Debug,
"DeviceManager::Create failed - OVR::System not initialized"); );
311 if (manager->Initialize(0))
void LogText(const char *fmt,...) OVR_LOG_VAARG_ATTRIBUTE(1
OVR_FORCE_INLINE void Clear()
bool RemoveSelectFd(Notifier *notify, int fd)
void PushBack(const ValueType &val)
virtual ThreadCommandQueue * GetThreadQueue()
const DeviceType InfoClassType
static LatencyTestDeviceFactory & GetInstance()
Ptr< DeviceCreateDesc > pCreateDesc
OVR_FORCE_INLINE C * GetPtr() const
virtual void SetThreadName(const char *name)
static SensorDeviceFactory & GetInstance()
#define OVR_DEBUG_STATEMENT(s)
Array< struct pollfd > PollFds
Ptr< DeviceManagerThread > pThread
virtual DeviceEnumerator EnumerateDevicesEx(const DeviceEnumerationArgs &args)
virtual bool GetDeviceInfo(DeviceInfo *info) const
Array< Notifier * > TicksNotifiers
static HIDDeviceManager * CreateInternal(DeviceManager *manager)
bool RemoveTicksNotifier(Notifier *notify)
static bool OVR_CDECL IsInitialized()
bool PopCommand(ThreadCommand::PopBuffer *popBuffer)
static Log * GetDefaultLog()
bool AddSelectFd(Notifier *notify, int fd)
Array< Notifier * > FdNotifiers
virtual bool Initialize(DeviceBase *parent)
static DeviceManager * Create()
void RemoveAt(UPInt index)
Ptr< HIDDeviceManager > HidDeviceManager
bool AddTicksNotifier(Notifier *notify)
ThreadId GetThreadId() const
static double OVR_STDCALL GetSeconds()
#define OVR_DEBUG_LOG(args)
virtual Void EnumerateAllFactoryDevices()
virtual ThreadId GetThreadId() const
static HMDDeviceFactory & GetInstance()
virtual DeviceEnumerator EnumerateDevicesEx(const DeviceEnumerationArgs &args)
virtual bool Initialize(DeviceBase *parent)