Closed ellisvelo closed 3 years ago
The link below has a patch that changes the 0 to a 1.
Sorry for the late reply, I must have missed the first message.
Please submit a proper pull request to this repository, and will merge it after testing. Thanks!
Ok, will do. Thanks.
Hello,
I noticed what appears to be a minor issue that the stream is not closed. SDL-GAME-CONTROLLER-ADD-MAPPINGS-FROM-RW has a 0 argument to prevent the closing of the stream. This is different from the #define in SDL_gamecontroller.h which uses a 1 to close the stream.
gamecontroller.lisp:
(defun game-controller-add-mappings-from-file (file-name) (sdl-game-controller-add-mappings-from-rw (sdl-rw-from-file file-name "rb") 0))
SDL_gamecontroller.h:
#define SDL_GameControllerAddMappingsFromFile(file) SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1)