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

Method updatePortComboBoxes

src/drivers/Qt/InputConf.cpp:339–363  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

337}
338//----------------------------------------------------------------------------
339void InputConfDialog_t::updatePortComboBoxes(void)
340{
341 for (int i = 0; i < 2; i++)
342 {
343 getInputSelection(i, &curNesInput[i], &usrNesInput[i]);
344
345 for (int j = 0; j < nesPortComboxBox[i]->count(); j++)
346 {
347 if (nesPortComboxBox[i]->itemData(j).toInt() == curNesInput[i])
348 {
349 nesPortComboxBox[i]->setCurrentIndex(j);
350 }
351 }
352 }
353
354 getInputSelection(2, &curNesInput[2], &usrNesInput[2]);
355
356 for (int j = 0; j < expPortComboxBox->count(); j++)
357 {
358 if (expPortComboxBox->itemData(j).toInt() == curNesInput[2])
359 {
360 expPortComboxBox->setCurrentIndex(j);
361 }
362 }
363}
364//----------------------------------------------------------------------------
365void InputConfDialog_t::port1Select(int index)
366{

Callers

nothing calls this directly

Calls 1

getInputSelectionFunction · 0.85

Tested by

no test coverage detected