summaryrefslogtreecommitdiff
path: root/render_sdl.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-07-31 23:08:52 -0700
committerMichael Pavone <pavone@retrodev.com>2018-07-31 23:08:52 -0700
commitd6335f0431dd0b57207922bfaf26a65dcc84154b (patch)
tree5ccdbdab7b7d8d352840f01ff40dd797dccc53fd /render_sdl.c
parentefc45143139312c585ff45f4d33f9c07dec2d92b (diff)
Read extral SDL2 mappings on startup from controller_types.cfg
Diffstat (limited to 'render_sdl.c')
-rwxr-xr-xrender_sdl.c3
1 files changed, 3 insertions, 0 deletions
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 <GL/glew.h>
@@ -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);