86 std::lock_guard<std::mutex> lock(
s_mutex );
92 while( spnav_poll_event( &sev ) > 0 )
94 if( sev.type == SPNAV_EVENT_MOTION )
96 m_handler->OnPan( sev.motion.x, sev.motion.y, sev.motion.z );
97 m_handler->OnRotate( sev.motion.rx, sev.motion.ry, sev.motion.rz );
99 else if( sev.type == SPNAV_EVENT_BUTTON )
101 m_handler->OnButton( sev.button.bnum, sev.button.press != 0 );