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

Function FCEUD_UpdateInput

src/drivers/Qt/input.cpp:1637–1729  ·  view source on GitHub ↗

* Update all of the input devices required for the active game. */

Source from the content-addressed store, hash-verified

1635 * Update all of the input devices required for the active game.
1636 */
1637void FCEUD_UpdateInput(void)
1638{
1639 int x;
1640 int t = 0;
1641
1642 if (buttonConfigInProgress)
1643 {
1644 return;
1645 }
1646
1647 updateGamePadKeyMappings();
1648
1649 UpdatePhysicalInput();
1650 KeyboardCommands();
1651
1652 for (x = 0; x < 2; x++)
1653 {
1654 switch (CurInputType[x])
1655 {
1656 case SI_GAMEPAD:
1657 case SI_SNES:
1658 t |= 1;
1659 break;
1660 case SI_ARKANOID:
1661 t |= 2;
1662 break;
1663 case SI_ZAPPER:
1664 t |= 2;
1665 break;
1666 case SI_POWERPADA:
1667 case SI_POWERPADB:
1668 powerpadbuf[x] = UpdatePPadData(x);
1669 break;
1670 case SI_MOUSE:
1671 case SI_SNES_MOUSE:
1672 t |= 4;
1673 break;
1674 }
1675 }
1676
1677 switch (CurInputType[2])
1678 {
1679 case SIFC_ARKANOID:
1680 t |= 2;
1681 break;
1682 case SIFC_SHADOW:
1683 t |= 2;
1684 break;
1685 case SIFC_FKB:
1686 if (g_fkbEnabled)
1687 {
1688 UpdateFKB();
1689 }
1690 break;
1691 case SIFC_HYPERSHOT:
1692 UpdateHyperShot();
1693 break;
1694 case SIFC_MAHJONG:

Callers 2

emuFrameFinishMethod · 0.70
updatePeriodicMethod · 0.70

Calls 14

updateGamePadKeyMappingsFunction · 0.85
FCEUMOV_ModeFunction · 0.85
UpdatePhysicalInputFunction · 0.70
KeyboardCommandsFunction · 0.70
UpdatePPadDataFunction · 0.70
UpdateFKBFunction · 0.70
UpdateHyperShotFunction · 0.70
UpdateMahjongFunction · 0.70
UpdateQuizKingFunction · 0.70
UpdateFTrainerFunction · 0.70
UpdateTopRiderFunction · 0.70
UpdateGamepadFunction · 0.70

Tested by

no test coverage detected