Example #1
0
static void ResetInputTypes()
{
#ifdef WIN32
    extern int UsrInputType[3];
    UsrInputType[0] = SI_GAMEPAD;
    UsrInputType[1] = SI_GAMEPAD;
    UsrInputType[2] = SIFC_NONE;

    ParseGIInput(NULL/*FCEUGameInfo*/);
    extern int cspec, gametype;
    cspec=FCEUGameInfo->cspecial;
    gametype=FCEUGameInfo->type;

    InitOtherInput();
#endif
}
Example #2
0
void ParseGIInput(FCEUGI *gi) {
    InputType[0] = UsrInputType[0];
    InputType[1] = UsrInputType[1];
    InputType[2] = UsrInputType[2];

    if (gi) {
        if (gi->input[0] >= 0)
            InputType[0] = gi->input[0];
        if (gi->input[1] >= 0)
            InputType[1] = gi->input[1];
        if (gi->inputfc >= 0)
            InputType[2] = gi->inputfc;
        cspec = gi->cspecial;
        gametype = gi->type;

        InitOtherInput();
    } else cspec = gametype = 0;
}