----------------------------------------------------------------------------
| 284 | } |
| 285 | //---------------------------------------------------------------------------- |
| 286 | void InputConfDialog_t::setInputs(void) |
| 287 | { |
| 288 | int idx[3]; |
| 289 | ESI port[2]; |
| 290 | ESIFC fcexp; |
| 291 | int fourscore = false, microphone = false; |
| 292 | |
| 293 | g_config->getOption("SDL.FourScore", &fourscore); |
| 294 | |
| 295 | microphone = port2Mic->isChecked(); |
| 296 | |
| 297 | idx[0] = nesPortComboxBox[0]->currentIndex(); |
| 298 | idx[1] = nesPortComboxBox[1]->currentIndex(); |
| 299 | idx[2] = expPortComboxBox->currentIndex(); |
| 300 | |
| 301 | port[0] = (ESI)nesPortComboxBox[0]->itemData(idx[0]).toInt(); |
| 302 | port[1] = (ESI)nesPortComboxBox[1]->itemData(idx[1]).toInt(); |
| 303 | fcexp = (ESIFC)expPortComboxBox->itemData(idx[2]).toInt(); |
| 304 | |
| 305 | FCEUD_SetInput(fourscore, microphone, port[0], port[1], fcexp); |
| 306 | } |
| 307 | //---------------------------------------------------------------------------- |
| 308 | void InputConfDialog_t::updatePortLabels(void) |
| 309 | { |
nothing calls this directly
no test coverage detected