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

Method toggleFamilyKeyboardEnable

src/drivers/Qt/FamilyKeyboard.cpp:956–992  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

954}
955//----------------------------------------------------------------------------
956void FKBConfigDialog::toggleFamilyKeyboardEnable(void)
957{
958 int curNesInput[3], usrNesInput[3];
959
960 getInputSelection(0, &curNesInput[0], &usrNesInput[0]);
961 getInputSelection(1, &curNesInput[1], &usrNesInput[1]);
962 getInputSelection(2, &curNesInput[2], &usrNesInput[2]);
963
964 if ( curNesInput[2] != SIFC_FKB )
965 {
966 ESI port[2];
967 ESIFC fcexp;
968 int fourscore = false, microphone = false;
969
970 curNesInput[2] = SIFC_FKB;
971
972 g_config->getOption("SDL.FourScore", &fourscore);
973
974 microphone = replaceP2StartWithMicrophone;
975
976 port[0] = (ESI)curNesInput[0];
977 port[1] = (ESI)curNesInput[1];
978 fcexp = (ESIFC)curNesInput[2];
979
980 FCEUD_SetInput(fourscore, microphone, port[0], port[1], fcexp);
981
982 if ( !isFamilyKeyboardActv() )
983 {
984 toggleFamilyKeyboardFunc();
985 }
986 }
987 else
988 {
989 toggleFamilyKeyboardFunc();
990 }
991 updateStatusLabel();
992}
993//----------------------------------------------------------------------------
994void FKBConfigDialog::closeEvent(QCloseEvent *event)
995{

Callers

nothing calls this directly

Calls 5

getInputSelectionFunction · 0.85
isFamilyKeyboardActvFunction · 0.85
toggleFamilyKeyboardFuncFunction · 0.85
getOptionMethod · 0.80
FCEUD_SetInputFunction · 0.70

Tested by

no test coverage detected