Browse Source

engine: platform: sdl: check SDL version in Platform_Vibrate

pull/2/head
Alibek Omarov 2 years ago
parent
commit
7e05562c14
  1. 2
      engine/platform/sdl/in_sdl.c

2
engine/platform/sdl/in_sdl.c

@ -122,8 +122,10 @@ Platform_Vibrate
*/ */
void Platform_Vibrate( float time, char flags ) void Platform_Vibrate( float time, char flags )
{ {
#if SDL_VERSION_ATLEAST( 2, 0, 9 )
if( g_joy ) if( g_joy )
SDL_JoystickRumble( g_joy, 0xFFFF, 0xFFFF, time * 1000.0f ); SDL_JoystickRumble( g_joy, 0xFFFF, 0xFFFF, time * 1000.0f );
#endif // SDL_VERSION_ATLEAST( 2, 0, 9 )
} }
#if !XASH_PSVITA #if !XASH_PSVITA

Loading…
Cancel
Save