fixed broken input system initialization [Gamecube/Wii]

This commit is contained in:
EkeEke 2012-11-26 22:48:41 +01:00
parent 68fd6e7e89
commit 2ce92e459a
3 changed files with 6 additions and 8 deletions

View File

@ -221,9 +221,6 @@ void config_default(void)
/* try to restore user config */
int loaded = config_load();
/* restore inputs */
input_init();
#ifndef HW_RVL
/* detect progressive mode enable/disable requests */
PAD_ScanPads();
@ -255,4 +252,9 @@ void config_default(void)
GUI_WaitPrompt("Warning","Default Settings restored");
gx_input_SetDefault();
}
/* default emulated inputs */
input.system[0] = SYSTEM_MD_GAMEPAD;
input.system[1] = (config.input[1].device != -1) ? SYSTEM_MD_GAMEPAD : NO_SYSTEM;
input_init();
}

View File

@ -1318,10 +1318,6 @@ void gx_input_SetDefault(void)
}
}
}
/* default emulated inputs */
input.system[0] = SYSTEM_MD_GAMEPAD;
input.system[1] = (config.input[1].device != -1) ? SYSTEM_MD_GAMEPAD : NO_SYSTEM;
}
void gx_input_Config(u8 chan, u8 device, u8 type)

View File

@ -68,7 +68,7 @@
/*************************************************/
#define VERSION "Genesis Plus GX 1.7.2"
#define VERSION "Genesis Plus GX 1.7.3"
#define NO_SYNC 0
#define SYNC_VIDEO 1