7 #include "imstkOpenHapticDeviceClient.h" 8 #include "imstkLogger.h" 21 std::vector<std::pair<int, int>> localEvents;
23 std::swap(m_events, localEvents);
26 for (
const auto& item : localEvents)
void unlock()
End a thread-safe region.
void initialize()
Initialize the phantom omni device.
ParallelUtils::SpinLock m_dataLock
Used for button and analog data.
void update() override
Use callback to get tracking data from phantom omni.
bool m_trackingEnabled
Tracking enabled if true.
void lock()
Start a thread-safe region, where only one thread can execute at a time until a call to the unlock fu...
void disable()
Disables the phantom omni device.
void postEvent(const T &e)
Emits the event Direct observers will be immediately called, in sync Queued observers will receive th...