engine: platform: sdl: check SDL version in Platform_Vibrate

This commit is contained in:
Alibek Omarov 2023-07-03 02:18:49 +03:00
parent 777dd3a03c
commit 7e05562c14
1 changed files with 2 additions and 0 deletions

View File

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