| 77 | } // namespace |
| 78 | |
| 79 | static float QueryKey(const Input& in, int dik, bool checkFocus) |
| 80 | { |
| 81 | if (checkFocus && in.gameFocusLost > 0) |
| 82 | return 0; |
| 83 | #if _ENABLE_CHEATS |
| 84 | if (in.keyboard.cheat1 || in.keyboard.cheat2) |
| 85 | return 0; |
| 86 | #endif |
| 87 | if (in.keyboard.awaitCheat) |
| 88 | return 0; |
| 89 | if (dik < 0 || dik >= SDL_SCANCODE_COUNT) |
| 90 | return 0; |
| 91 | return in.keyboard.keys[dik]; |
| 92 | } |
| 93 | |
| 94 | static float QueryDoubleTapKey(const Input& in, int dik, bool checkFocus) |
| 95 | { |
no outgoing calls
no test coverage detected