From 04849bce16c68d549050b15bb829ef38213b768b Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 5 Aug 2021 17:37:18 +0000 Subject: [PATCH] Fix ommission. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6013 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/in_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/client/in_sdl.c b/engine/client/in_sdl.c index 8968c89ca..a75fd1b52 100644 --- a/engine/client/in_sdl.c +++ b/engine/client/in_sdl.c @@ -123,6 +123,7 @@ static void J_AllocateDevID(struct sdljoy_s *joy) joy->qdevid = id; +#if SDL_VERSION_ATLEAST(2,0,14) if (joy->controller) { //enable some sensors if they're there. because we can. @@ -131,6 +132,7 @@ static void J_AllocateDevID(struct sdljoy_s *joy) if (SDL_GameControllerHasSensor(joy->controller, SDL_SENSOR_GYRO)) SDL_GameControllerSetSensorEnabled(joy->controller, SDL_SENSOR_GYRO, SDL_TRUE); } +#endif } static void J_ControllerAdded(int enumid) {