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

Function UpdateMahjong

src/drivers/sdl/input.cpp:1488–1501  ·  view source on GitHub ↗

* Update the status of for the Mahjong input device. */

Source from the content-addressed store, hash-verified

1486 * Update the status of for the Mahjong input device.
1487 */
1488 static void
1489UpdateMahjong ()
1490{
1491 int x;
1492
1493 MahjongData = 0;
1494 for (x = 0; x < 21; x++)
1495 {
1496 if (DTestButton (&MahjongButtons[x]))
1497 {
1498 MahjongData |= 1 << x;
1499 }
1500 }
1501}
1502
1503static ButtConfig QuizKingButtons[6] = {
1504 MK (Q), MK (W), MK (E), MK (R), MK (T), MK (Y)

Callers 1

FCEUD_UpdateInputFunction · 0.70

Calls 1

DTestButtonFunction · 0.70

Tested by

no test coverage detected