| 423 | |
| 424 | |
| 425 | void 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 | |
| 453 | static DECLFR(VSUNIRead0) |
| 454 | { |
no test coverage detected