----------------------------------------------------------------------------
| 567 | } |
| 568 | //---------------------------------------------------------------------------- |
| 569 | void 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 | //---------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected