diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-11-14 10:01:43 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-11-14 10:01:43 -0800 |
commit | f9a2e263187a70f15a9adfd1aee681b5810c1efe (patch) | |
tree | d418d4b87dadc96199747548b765db2c80a267a9 /io.c | |
parent | 2e22886d47388740a5a75e5702dd63402338bb5e (diff) |
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.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |