Mercurial > repos > blastem
diff render_sdl.c @ 1194:1ad0ec7e3939
Make gamepad "semantic" mapping play nice with hotplug support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 24 Jan 2017 20:53:10 -0800 |
parents | 6a4503fad67e |
children | 8715174e9366 |
line wrap: on
line diff
--- a/render_sdl.c Tue Jan 24 18:53:55 2017 -0800 +++ b/render_sdl.c Tue Jan 24 20:53:10 2017 -0800 @@ -818,6 +818,7 @@ 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); } } }