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

Function FCEUD_UpdateInput

src/drivers/sdl/input.cpp:1212–1301  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1210 * Update all of the input devices required for the active game.
1211 */
1212void FCEUD_UpdateInput(void)
1213{
1214 int x;
1215 int t = 0;
1216
1217 if ( buttonConfigInProgress )
1218 {
1219 return;
1220 }
1221 UpdatePhysicalInput ();
1222 KeyboardCommands ();
1223
1224 for (x = 0; x < 2; x++)
1225 {
1226 switch (CurInputType[x])
1227 {
1228 case SI_GAMEPAD:
1229 case SI_SNES:
1230 t |= 1;
1231 break;
1232 case SI_ARKANOID:
1233 t |= 2;
1234 break;
1235 case SI_ZAPPER:
1236 t |= 2;
1237 break;
1238 case SI_POWERPADA:
1239 case SI_POWERPADB:
1240 powerpadbuf[x] = UpdatePPadData (x);
1241 break;
1242 case SI_MOUSE:
1243 case SI_SNES_MOUSE:
1244 t |= 4;
1245 break;
1246 }
1247 }
1248
1249 switch (CurInputType[2])
1250 {
1251 case SIFC_ARKANOID:
1252 t |= 2;
1253 break;
1254 case SIFC_SHADOW:
1255 t |= 2;
1256 break;
1257 case SIFC_FKB:
1258 if (g_fkbEnabled)
1259 {
1260 UpdateFKB ();
1261 }
1262 break;
1263 case SIFC_HYPERSHOT:
1264 UpdateHyperShot ();
1265 break;
1266 case SIFC_MAHJONG:
1267 UpdateMahjong ();
1268 break;
1269 case SIFC_QUIZKING:

Callers 2

winDebuggerLoopStepFunction · 0.70
mainFunction · 0.70

Calls 13

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
GetMouseDataFunction · 0.70

Tested by

no test coverage detected