summaryrefslogtreecommitdiff
path: root/render_sdl.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-24 20:53:10 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-24 20:53:10 -0800
commit2a084b8d3bf5e2aa6ebcdbedcd1d3434c9c7bcfe (patch)
tree0cb8d0778bd0e0ab8d7e0955c11607f3e41b243d /render_sdl.c
parent38eaaa95557e06123a042d1b0cb4ac949b734730 (diff)
Make gamepad "semantic" mapping play nice with hotplug support
Diffstat (limited to 'render_sdl.c')
-rwxr-xr-xrender_sdl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/render_sdl.c b/render_sdl.c
index 337d847..a594ad8 100755
--- a/render_sdl.c
+++ b/render_sdl.c
@@ -818,6 +818,7 @@ static int32_t handle_event(SDL_Event *event)
if (joy) {
printf("Joystick %d added: %s\n", index, SDL_JoystickName(joy));
printf("\tNum Axes: %d\n\tNum Buttons: %d\n\tNum Hats: %d\n", SDL_JoystickNumAxes(joy), SDL_JoystickNumButtons(joy), SDL_JoystickNumHats(joy));
+ handle_joy_added(index);
}
}
}