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

Function ParseGIInput

src/drivers/sdl/input.cpp:84–106  ·  view source on GitHub ↗

* Parse game information and configure the input devices accordingly. */

Source from the content-addressed store, hash-verified

82 * Parse game information and configure the input devices accordingly.
83 */
84void
85ParseGIInput (FCEUGI * gi)
86{
87 gametype = gi->type;
88
89 CurInputType[0] = UsrInputType[0];
90 CurInputType[1] = UsrInputType[1];
91 CurInputType[2] = UsrInputType[2];
92
93 if (gi->input[0] >= 0)
94 {
95 CurInputType[0] = gi->input[0];
96 }
97 if (gi->input[1] >= 0)
98 {
99 CurInputType[1] = gi->input[1];
100 }
101 if (gi->inputfc >= 0)
102 {
103 CurInputType[2] = gi->inputfc;
104 }
105 cspec = gi->cspecial;
106}
107
108
109static uint8 QuizKingData = 0;

Callers 1

LoadGameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected