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

Method setInputs

src/drivers/Qt/InputConf.cpp:286–306  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

284}
285//----------------------------------------------------------------------------
286void 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//----------------------------------------------------------------------------
308void InputConfDialog_t::updatePortLabels(void)
309{

Callers

nothing calls this directly

Calls 3

getOptionMethod · 0.80
currentIndexMethod · 0.80
FCEUD_SetInputFunction · 0.70

Tested by

no test coverage detected