# HG changeset patch # User Michael Pavone # Date 1447524103 28800 # Node ID fb1f11fd069215314159727449d6edbbfd428ac8 # Parent e3f5ec33643225fdbd2ce33f11e725344d5738e8 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. diff -r e3f5ec336432 -r fb1f11fd0692 io.c --- a/io.c Sat Nov 14 09:49:39 2015 -0800 +++ b/io.c Sat Nov 14 10:01:43 2015 -0800 @@ -633,6 +633,7 @@ && ports[j].device.pad.gamepad_num == num ) { + memset(ports[j].input, 0, sizeof(ports[j].input)); bindings[i].port = ports + j; break; }