diff io.c @ 886:fb1f11fd0692

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.
author Michael Pavone <pavone@retrodev.com>
date Sat, 14 Nov 2015 10:01:43 -0800
parents 252dfd29831d
children bc127fa1f800
line wrap: on
line diff
--- 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;
 				}