summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
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;
}