changeset 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 e3f5ec336432
children fb4d09f874dd
files io.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;
 				}