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