Fix SDL after r425 -- checkin comments from r425 still apply to both input.cpp files
This commit is contained in:
parent
c438158a00
commit
81d1a6c7eb
|
@ -671,6 +671,17 @@ FCEUD_UpdateInput()
|
|||
}
|
||||
}
|
||||
|
||||
void FCEUD_SetInput(bool fourscore, ESI port0, ESI port1, ESIFC fcexp)
|
||||
{
|
||||
eoptions &= ~EO_FOURSCORE;
|
||||
if(fourscore) eoptions |= EO_FOURSCORE;
|
||||
|
||||
InputType[0]=port0;
|
||||
InputType[1]=port1;
|
||||
InputType[2]=fcexp;
|
||||
InitInputInterface();
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the input device interface between the emulation and the driver.
|
||||
*/
|
||||
|
@ -750,7 +761,7 @@ InitInputInterface()
|
|||
}
|
||||
|
||||
FCEUI_SetInputFC((ESIFC)InputType[2], InputDPtr, attrib);
|
||||
FCEUI_DisableFourScore(eoptions & EO_NOFOURSCORE);
|
||||
FCEUI_SetInputFourscore((eoptions & EO_FOURSCORE)!=0);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ extern int eoptions;
|
|||
#define EO_SUBASE 2
|
||||
#define EO_CLIPSIDES 8
|
||||
#define EO_SNAPNAME 16
|
||||
#define EO_NOFOURSCORE 32
|
||||
#define EO_FOURSCORE 32
|
||||
#define EO_NOTHROTTLE 64
|
||||
#define EO_GAMEGENIE 128
|
||||
#define EO_PAL 256
|
||||
|
|
Loading…
Reference in New Issue