Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:munix9:unstable
openparsec
fix-sdl-compat.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-sdl-compat.patch of Package openparsec
--- a/src/parsec/isdl_joy.cpp +++ b/src/parsec/isdl_joy.cpp @@ -148,8 +148,11 @@ MSGOUT("isdl_joy: Joystick%d has %d axes and %d buttons\n", 0, isdl_NumAxes, isdl_NumButtons); QueryJoystick = TRUE; JoystickDisabled = FALSE; - if(!SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt")) MSGOUT("FAILED TO LOAD CONTROLLER DATABASE"); //Load game controller mapping database - else { +#if SDL_VERSION_ATLEAST(2,0,14) + //Load game controller mapping database + if(!SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt")) { + MSGOUT("FAILED TO LOAD CONTROLLER DATABASE"); + } else { MSGOUT("LOADED CONTROLLER DATABASE"); isdl_controllerHandle = SDL_GameControllerOpen(0); //Open Game controller object isdl_controllerGUID = SDL_JoystickGetDeviceGUID(0); @@ -184,6 +186,9 @@ */ } } +#else + MSGOUT("CONTROLLER DATABASE: SDL_VERSION_ATLEAST(2,0,14)"); +#endif } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor