Build fixes when using SDL 1.3 related to force feedback support, as suggested in issue #1338.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7199 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
smelenchuk 2011-02-19 07:06:26 +00:00
parent ad666d5e5c
commit 050dcad9f8

View File

@ -105,15 +105,15 @@ Joystick::Joystick(SDL_Joystick* const joystick, const int sdl_index, const unsi
// constant effect
if ( supported_effects & SDL_HAPTIC_CONSTANT )
{
outputs.push_back( new ConstantEffect( m_state_out.size() ) );
AddOutput( EffectIDState() );
AddOutput( new ConstantEffect( m_state_out.size() ) );
m_state_out.push_back( EffectIDState() );
}
// ramp effect
if ( supported_effects & SDL_HAPTIC_RAMP )
{
outputs.push_back( new RampEffect( m_state_out.size() ) );
AddOutput( EffectIDState() );
AddOutput( new RampEffect( m_state_out.size() ) );
m_state_out.push_back( EffectIDState() );
}
}
#endif