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

Function UpdateTopRider

src/drivers/Qt/input.cpp:1995–2007  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1993 * Update the status of the TopRider input device.
1994 */
1995static void
1996UpdateTopRider()
1997{
1998 int x;
1999 TopRiderData = 0;
2000 for (x = 0; x < 8; x++)
2001 {
2002 if (DTestButton(&TopRiderButtons[x]))
2003 {
2004 TopRiderData |= (1 << x);
2005 }
2006 }
2007}
2008
2009static ButtConfig FTrainerButtons[12] = {
2010 MK(SDLK_O), MK(SDLK_P), MK(SDLK_BRACKET_LEFT),

Callers 1

FCEUD_UpdateInputFunction · 0.70

Calls 1

DTestButtonFunction · 0.70

Tested by

no test coverage detected