From 5f08c2f9371a710ac1cc38e3c3be4ee52666afd3 Mon Sep 17 00:00:00 2001 From: ToadKing Date: Sun, 6 Jan 2013 19:19:23 -0500 Subject: [PATCH] (GX) skip polling of disconnected GC controllers --- gx/gx_input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gx/gx_input.c b/gx/gx_input.c index d251d1e042..04b3ab8720 100644 --- a/gx/gx_input.c +++ b/gx/gx_input.c @@ -389,6 +389,9 @@ static void gx_input_poll(void *data) for (unsigned port = 0; port < MAX_PADS; port++) { + if (!(SI_GetType(port) & SI_TYPE_GC)) + continue; + uint64_t *state_cur = &pad_state[port]; uint16_t down = PAD_ButtonsHeld(port);