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

Method updatePeriodic

src/drivers/Qt/InputConf.cpp:569–601  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

567}
568//----------------------------------------------------------------------------
569void InputConfDialog_t::updatePeriodic(void)
570{
571 bool updateNeeded = false;
572 int tmpCurInputType[3], tmpUsrInputType[3];
573 bool fourScoreValue = false;
574
575 for (int i = 0; i < 3; i++)
576 {
577 getInputSelection(i, &tmpCurInputType[i], &tmpUsrInputType[i]);
578
579 if (curNesInput[i] != tmpCurInputType[i])
580 {
581 updateNeeded = true;
582 }
583 if (usrNesInput[i] != tmpUsrInputType[i])
584 {
585 updateNeeded = true;
586 }
587 }
588
589 if (updateNeeded)
590 {
591 updatePortLabels();
592 updatePortComboBoxes();
593 }
594
595 g_config->getOption("SDL.FourScore", &fourScoreValue);
596
597 if (fourScoreValue != fourScoreEna->isChecked())
598 {
599 fourScoreEna->setChecked(fourScoreValue);
600 }
601}
602//----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

getInputSelectionFunction · 0.85
getOptionMethod · 0.80

Tested by

no test coverage detected