mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
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:
@ -105,15 +105,15 @@ Joystick::Joystick(SDL_Joystick* const joystick, const int sdl_index, const unsi
|
|||||||
// constant effect
|
// constant effect
|
||||||
if ( supported_effects & SDL_HAPTIC_CONSTANT )
|
if ( supported_effects & SDL_HAPTIC_CONSTANT )
|
||||||
{
|
{
|
||||||
outputs.push_back( new ConstantEffect( m_state_out.size() ) );
|
AddOutput( new ConstantEffect( m_state_out.size() ) );
|
||||||
AddOutput( EffectIDState() );
|
m_state_out.push_back( EffectIDState() );
|
||||||
}
|
}
|
||||||
|
|
||||||
// ramp effect
|
// ramp effect
|
||||||
if ( supported_effects & SDL_HAPTIC_RAMP )
|
if ( supported_effects & SDL_HAPTIC_RAMP )
|
||||||
{
|
{
|
||||||
outputs.push_back( new RampEffect( m_state_out.size() ) );
|
AddOutput( new RampEffect( m_state_out.size() ) );
|
||||||
AddOutput( EffectIDState() );
|
m_state_out.push_back( EffectIDState() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user