From 2a084b8d3bf5e2aa6ebcdbedcd1d3434c9c7bcfe Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 24 Jan 2017 20:53:10 -0800 Subject: Make gamepad "semantic" mapping play nice with hotplug support --- render_sdl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'render_sdl.c') 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); } } } -- cgit v1.2.3