From f9a2e263187a70f15a9adfd1aee681b5810c1efe Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 14 Nov 2015 10:01:43 -0800 Subject: Clear out IO port input state when setting bindings. This fixes a bug where pressing start in the menu after returning to it only worked on the second try. --- io.c | 1 + 1 file changed, 1 insertion(+) (limited to 'io.c') diff --git a/io.c b/io.c index 6ac4bf9..c43281f 100644 --- a/io.c +++ b/io.c @@ -633,6 +633,7 @@ void map_bindings(io_port *ports, keybinding *bindings, int numbindings) && ports[j].device.pad.gamepad_num == num ) { + memset(ports[j].input, 0, sizeof(ports[j].input)); bindings[i].port = ports + j; break; } -- cgit v1.2.3