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

Function UpdateMahjong

src/drivers/Qt/input.cpp:1952–1965  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1950 * Update the status of for the Mahjong input device.
1951 */
1952static void
1953UpdateMahjong()
1954{
1955 int x;
1956
1957 MahjongData = 0;
1958 for (x = 0; x < 21; x++)
1959 {
1960 if (DTestButton(&MahjongButtons[x]))
1961 {
1962 MahjongData |= 1 << x;
1963 }
1964 }
1965}
1966
1967static ButtConfig QuizKingButtons[6] = {
1968 MK(SDLK_Q), MK(SDLK_W), MK(SDLK_E), MK(SDLK_R), MK(SDLK_T), MK(SDLK_Y)};

Callers 1

FCEUD_UpdateInputFunction · 0.70

Calls 1

DTestButtonFunction · 0.70

Tested by

no test coverage detected