void SCA_JoystickManager::NextFrame(double curtime,double deltatime) { if (m_sensors.Empty()) { return; } else { SG_DList::iterator<SCA_JoystickSensor> it(m_sensors); for (it.begin();!it.end();++it) { SCA_JoystickSensor* joysensor = *it; if (!joysensor->IsSuspended()) { joysensor->Activate(m_logicmgr); } } } }
void SCA_JoystickManager::NextFrame(double curtime,double deltatime) { if (m_sensors.Empty()) { return; } else { ; #ifndef DISABLE_SDL SCA_Joystick::HandleEvents(); /* Handle all SDL Joystick events */ #endif SG_DList::iterator<SCA_JoystickSensor> it(m_sensors); for (it.begin();!it.end();++it) { SCA_JoystickSensor* joysensor = *it; if(!joysensor->IsSuspended()) { joysensor->Activate(m_logicmgr); } } } }
void SCA_JoystickManager::NextFrame(double curtime,double deltatime) { // We should always handle events in case we want to grab them with Python #ifdef WITH_SDL SCA_Joystick::HandleEvents(); /* Handle all SDL Joystick events */ #endif if (m_sensors.Empty()) { return; } else { ; SG_DList::iterator<SCA_JoystickSensor> it(m_sensors); for (it.begin();!it.end();++it) { SCA_JoystickSensor* joysensor = *it; if (!joysensor->IsSuspended()) { joysensor->Activate(m_logicmgr); } } } }