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

Function FCEU_UpdateInput

src/input.cpp:425–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424
425void FCEU_UpdateInput(void)
426{
427 //tell all drivers to poll input and set up their logical states
428 if(!FCEUMOV_Mode(MOVIEMODE_PLAY))
429 {
430 for(int port=0;port<2;port++){
431 joyports[port].driver->Update(port,joyports[port].ptr,joyports[port].attrib);
432 }
433 portFC.driver->Update(portFC.ptr,portFC.attrib);
434 }
435
436 if (GameInfo->type == GIT_VSUNI) {
437 if (coinon) coinon--;
438 if (coinon2) coinon2--;
439 if (service) service--;
440 }
441
442 if(FCEUnetplay)
443 NetplayUpdate(joy);
444
445 FCEUMOV_AddInputState();
446
447 //TODO - should this apply to the movie data? should this be displayed in the input hud?
448 if(GameInfo->type==GIT_VSUNI){
449 FCEU_VSUniSwap(&joy[0],&joy[1]);
450 }
451}
452
453static DECLFR(VSUNIRead0)
454{

Callers 1

FCEUI_EmulateFunction · 0.85

Calls 5

FCEUMOV_ModeFunction · 0.85
NetplayUpdateFunction · 0.85
FCEUMOV_AddInputStateFunction · 0.85
FCEU_VSUniSwapFunction · 0.85
UpdateMethod · 0.45

Tested by

no test coverage detected