diff --git a/src/drivers/sdl/input.cpp b/src/drivers/sdl/input.cpp index 1cd4d29c..9ffb9503 100644 --- a/src/drivers/sdl/input.cpp +++ b/src/drivers/sdl/input.cpp @@ -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); } diff --git a/src/drivers/sdl/main.h b/src/drivers/sdl/main.h index 2ed21135..0a379864 100644 --- a/src/drivers/sdl/main.h +++ b/src/drivers/sdl/main.h @@ -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