diff options
| author | skidau <skidau@gmail.com> | 2015-03-02 00:10:27 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2015-03-02 11:08:26 +1100 |
| commit | 939159cd71965c98d7935433bbffe4ed61a8aba4 (patch) | |
| tree | 15b028fe1ab4e8cc8751214d65d0314de6716f56 /Source | |
| parent | 7f7973efa552c87ba23426e42ce9757ebc9fbdb6 (diff) | |
Cleared the status of the GC Adapter before populating it with new data
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/HW/SI_GCAdapter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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]; |
