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

Function UpdateFTrainer

src/drivers/sdl/input.cpp:1557–1570  ·  view source on GitHub ↗

* Update the status of the FTrainer input device. */

Source from the content-addressed store, hash-verified

1555 * Update the status of the FTrainer input device.
1556 */
1557 static void
1558UpdateFTrainer ()
1559{
1560 int x;
1561 FTrainerData = 0;
1562
1563 for (x = 0; x < 12; x++)
1564 {
1565 if (DTestButton (&FTrainerButtons[x]))
1566 {
1567 FTrainerData |= (1 << x);
1568 }
1569 }
1570}
1571
1572/**
1573 * Get the display name of the key or joystick button mapped to a specific

Callers 1

FCEUD_UpdateInputFunction · 0.70

Calls 1

DTestButtonFunction · 0.70

Tested by

no test coverage detected