mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-21 03:11:57 +00:00
Merge pull request #998 from apartfromtime/master
Fix implicit declaration of SDL_GameControllerGetSensorDataRate avail…
This commit is contained in:
commit
7370bfcde9
1 changed files with 4 additions and 0 deletions
|
@ -2176,8 +2176,12 @@ IN_Controller_Init(qboolean notify_user)
|
|||
&& !SDL_GameControllerSetSensorEnabled(controller, SDL_SENSOR_GYRO, SDL_TRUE) )
|
||||
{
|
||||
show_gyro = true;
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 16)
|
||||
Com_Printf( "Gyro sensor enabled at %.2f Hz\n",
|
||||
SDL_GameControllerGetSensorDataRate(controller, SDL_SENSOR_GYRO) );
|
||||
#else
|
||||
Com_Printf( "Gyro sensor enabled.\n" );
|
||||
#endif // #if SDL_VERSION_ATLEAST(2, 0, 16)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue