From d6335f0431dd0b57207922bfaf26a65dcc84154b Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 31 Jul 2018 23:08:52 -0700 Subject: Read extral SDL2 mappings on startup from controller_types.cfg --- render_sdl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'render_sdl.c') diff --git a/render_sdl.c b/render_sdl.c index 532f11c..ca5cce5 100755 --- a/render_sdl.c +++ b/render_sdl.c @@ -16,6 +16,7 @@ #include "ppm.h" #include "png.h" #include "config.h" +#include "controller_info.h" #ifndef DISABLE_OPENGL #include @@ -1141,6 +1142,8 @@ void render_init(int width, int height, char * title, uint8_t fullscreen) printf("Added %d game controller mappings from gamecontrollerdb.txt\n", added); } + controller_add_mappings(); + SDL_JoystickEventState(SDL_ENABLE); render_set_video_standard(VID_NTSC); -- cgit v1.2.3