Esempio n. 1
0
CValue* SCA_JoystickSensor::GetReplica()
{
	SCA_JoystickSensor* replica = new SCA_JoystickSensor(*this);
	// this will copy properties and so on...
	replica->ProcessReplica();
	replica->Init();
	return replica;
}
Esempio n. 2
0
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);
			}
		}
	}
}
Esempio n. 3
0
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);
			}
		}
	}
}
Esempio n. 4
0
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);
			}
		}
	}
}