summaryrefslogtreecommitdiff
path: root/render_sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'render_sdl.c')
-rwxr-xr-xrender_sdl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/render_sdl.c b/render_sdl.c
index 50e9019..f1c8153 100755
--- a/render_sdl.c
+++ b/render_sdl.c
@@ -950,6 +950,11 @@ int lock_joystick_index(int joystick, int desired_index)
joysticks[desired_index] = tmp_joy;
joystick_sdl_index[desired_index] = tmp_index;
joystick_index_locked[desired_index] = 1;
+ //update bindings as the controllers being swapped may have different mappings
+ handle_joy_added(desired_index);
+ if (joysticks[joystick]) {
+ handle_joy_added(joystick);
+ }
return desired_index;
}