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

Function UpdateTopRider

src/drivers/sdl/input.cpp:1533–1545  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1531 * Update the status of the TopRider input device.
1532 */
1533 static void
1534UpdateTopRider ()
1535{
1536 int x;
1537 TopRiderData = 0;
1538 for (x = 0; x < 8; x++)
1539 {
1540 if (DTestButton (&TopRiderButtons[x]))
1541 {
1542 TopRiderData |= (1 << x);
1543 }
1544 }
1545}
1546
1547static ButtConfig FTrainerButtons[12] = {
1548 MK (O), MK (P), MK (BRACKET_LEFT),

Callers 1

FCEUD_UpdateInputFunction · 0.70

Calls 1

DTestButtonFunction · 0.70

Tested by

no test coverage detected