Open parkerlreed opened 4 years ago
I have no idea, I never tried to use controler with on SeriousSam. I'll look at the code later, see if cntroler is even coded (I'm unsure).
Yeah cursory glance there's no mention of "controller" in the codebase (according to github search)
Oh GitHub search sucks... Big surprise.
The support seems to be there. I'll keep poking seeing if I can get it to see the controller
[parker@stealth Serious-Engine]$ grep -ri controlleradd .
./Sources/External/SDL2/SDL_gamecontroller.h: * Using the SDL_HINT_GAMECONTROLLERCONFIG hint or the SDL_GameControllerAddMapping you can add support for controllers SDL is unaware of or cause an existing controller to have a different binding. The format is:
./Sources/External/SDL2/SDL_gamecontroller.h:extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW( SDL_RWops * rw, int freerw );
./Sources/External/SDL2/SDL_gamecontroller.h:#define SDL_GameControllerAddMappingsFromFile(file) SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1)
./Sources/External/SDL2/SDL_gamecontroller.h:extern DECLSPEC int SDLCALL SDL_GameControllerAddMapping( const char* mappingString );
./Sources/External/SDL2/SDL_hints.h: * You can update mappings after the system is initialized with SDL_GameControllerMappingForGUID() and SDL_GameControllerAddMapping()
Mmm, no, that's just the SDL2 include header here. It's not any part of SeriousEngine code.
I'm trying to use a controller in TFE but it doesn't get recognized when setting inputs.
I then thought it may be using the SDL2 game controller mapping and passed that as an environment variable but got nothing.
Is there something weird that needs to be done for a controller to work?