From 6416f825ed4d75827796105cb577bc2c38a10377 Mon Sep 17 00:00:00 2001 From: Toad King Date: Wed, 24 Jun 2015 22:42:43 -0500 Subject: [PATCH] [GX] fix controllers not loading autoconfig after starting games --- input/drivers_joypad/gx_joypad.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/input/drivers_joypad/gx_joypad.c b/input/drivers_joypad/gx_joypad.c index ba62040171..9c722346e6 100644 --- a/input/drivers_joypad/gx_joypad.c +++ b/input/drivers_joypad/gx_joypad.c @@ -560,6 +560,7 @@ static void gx_joypad_poll(void) static bool gx_joypad_init(void *data) { + int i; SYS_SetResetCallback(reset_cb); #ifdef HW_RVL SYS_SetPowerCallback(power_callback); @@ -567,6 +568,9 @@ static bool gx_joypad_init(void *data) (void)data; + for (i = 0; i < MAX_PADS; i++) + pad_type[i] = 0; + PAD_Init(); #ifdef HW_RVL WPADInit();