* Parse game information and configure the input devices accordingly. */
| 82 | * Parse game information and configure the input devices accordingly. |
| 83 | */ |
| 84 | void |
| 85 | ParseGIInput (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 | |
| 109 | static uint8 QuizKingData = 0; |