From 939159cd71965c98d7935433bbffe4ed61a8aba4 Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 2 Mar 2015 00:10:27 +1100 Subject: [PATCH] Cleared the status of the GC Adapter before populating it with new data --- Source/Core/Core/HW/SI_GCAdapter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/HW/SI_GCAdapter.cpp b/Source/Core/Core/HW/SI_GCAdapter.cpp index c1ff3a4932..795054c61f 100644 --- a/Source/Core/Core/HW/SI_GCAdapter.cpp +++ b/Source/Core/Core/HW/SI_GCAdapter.cpp @@ -331,6 +331,7 @@ void Input(int chan, GCPadStatus* pad) if (s_controller_type[chan] != CONTROLLER_NONE) { + memset(pad, 0, sizeof(*pad)); u8 b1 = controller_payload_copy[1 + (9 * chan) + 1]; u8 b2 = controller_payload_copy[1 + (9 * chan) + 2];