mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 15:47:55 +00:00
engine: platform: sdl: check SDL version in Platform_Vibrate
This commit is contained in:
parent
777dd3a03c
commit
7e05562c14
@ -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…
Reference in New Issue
Block a user