1
0
Fork 0
forked from fte/fteqw

Fix ommission.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6013 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-08-05 17:37:18 +00:00
parent e598d136b9
commit 04849bce16

View file

@ -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)
{