MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEUD_SetInput

Function FCEUD_SetInput

src/drivers/Qt/input.cpp:1731–1757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1729}
1730
1731void FCEUD_SetInput(bool fourscore, bool microphone, ESI port0, ESI port1,
1732 ESIFC fcexp)
1733{
1734 eoptions &= ~EO_FOURSCORE;
1735 if (fourscore)
1736 { // Four Score emulation, only support gamepads, nothing else
1737 eoptions |= EO_FOURSCORE;
1738 CurInputType[0] = SI_GAMEPAD; // Controllers 1 and 3
1739 CurInputType[1] = SI_GAMEPAD; // Controllers 2 and 4
1740 CurInputType[2] = SIFC_NONE; // No extension
1741 }
1742 else
1743 {
1744 // no Four Core emulation, check the config/movie file for controller types
1745 CurInputType[0] = port0;
1746 CurInputType[1] = port1;
1747 CurInputType[2] = fcexp;
1748 }
1749 if (CurInputType[2] != SIFC_FKB)
1750 {
1751 g_fkbEnabled = false;
1752 }
1753
1754 replaceP2StartWithMicrophone = microphone;
1755
1756 InitInputInterface();
1757}
1758
1759/**
1760 * Initialize the input device interface between the emulation and the driver.

Callers 4

setInputsMethod · 0.70
FCEUI_LoadMovieFunction · 0.50
applyMovieInputConfigFunction · 0.50

Calls 1

InitInputInterfaceFunction · 0.70

Tested by

no test coverage detected