summaryrefslogtreecommitdiff
path: root/render_sdl.c
diff options
context:
space:
mode:
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);