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

Method updatePortLabels

src/drivers/Qt/InputConf.cpp:308–337  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

306}
307//----------------------------------------------------------------------------
308void InputConfDialog_t::updatePortLabels(void)
309{
310
311 for (int i = 0; i < 2; i++)
312 {
313 getInputSelection(i, &curNesInput[i], &usrNesInput[i]);
314
315 for (int j = 0; j < nesPortComboxBox[i]->count(); j++)
316 {
317 if (nesPortComboxBox[i]->itemData(j).toInt() == curNesInput[i])
318 {
319 nesPortLabel[i]->setText(nesPortComboxBox[i]->itemText(j));
320 }
321 }
322
323 nesPortConfButton[i]->setEnabled(curNesInput[i] == SI_GAMEPAD);
324 }
325
326 getInputSelection(2, &curNesInput[2], &usrNesInput[2]);
327
328 for (int j = 0; j < expPortComboxBox->count(); j++)
329 {
330 if (expPortComboxBox->itemData(j).toInt() == curNesInput[2])
331 {
332 expPortLabel->setText(expPortComboxBox->itemText(j));
333 }
334 }
335
336 expPortConfButton->setEnabled( curNesInput[2] == SIFC_FKB );
337}
338//----------------------------------------------------------------------------
339void InputConfDialog_t::updatePortComboBoxes(void)
340{

Callers

nothing calls this directly

Calls 2

getInputSelectionFunction · 0.85
setTextMethod · 0.80

Tested by

no test coverage detected