Fixed building on non-Android platforms

This commit is contained in:
Sam Lantinga 2017-11-01 10:07:04 -07:00
parent a90be440e8
commit a7d2d12c64
1 changed files with 1 additions and 1 deletions

View File

@ -926,8 +926,8 @@ static ControllerMapping_t *SDL_PrivateGetControllerMapping(int device_index)
SDL_snprintf(mapping_string, sizeof(mapping_string), "none,%s,a:b0,b:b1,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,", name); SDL_snprintf(mapping_string, sizeof(mapping_string), "none,%s,a:b0,b:b1,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,", name);
mapping = SDL_PrivateAddMappingForGUID(guid, mapping_string, mapping = SDL_PrivateAddMappingForGUID(guid, mapping_string,
&existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT); &existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT);
#endif /* __ANDROID__ */
} }
#endif /* __ANDROID__ */
SDL_UnlockJoysticks(); SDL_UnlockJoysticks();
return mapping; return mapping;
} }