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:
parent
e598d136b9
commit
04849bce16
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue