Cleared the status of the GC Adapter before populating it with new data

This commit is contained in:
skidau 2015-03-02 00:10:27 +11:00
parent 7f7973efa5
commit 939159cd71
1 changed files with 1 additions and 0 deletions

View File

@ -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];