| 92 | } |
| 93 | |
| 94 | static float QueryDoubleTapKey(const Input& in, int dik, bool checkFocus) |
| 95 | { |
| 96 | if (checkFocus && in.gameFocusLost > 0) |
| 97 | return 0; |
| 98 | #if _ENABLE_CHEATS |
| 99 | if (in.keyboard.cheat1 || in.keyboard.cheat2) |
| 100 | return 0; |
| 101 | #endif |
| 102 | if (in.keyboard.awaitCheat) |
| 103 | return 0; |
| 104 | if (dik < 0 || dik >= SDL_SCANCODE_COUNT) |
| 105 | return 0; |
| 106 | return in.keyboard.keysDoubleTapActive[dik] ? in.keyboard.keys[dik] : 0.0f; |
| 107 | } |
| 108 | |
| 109 | static bool QueryKeyToDo(Input& in, int dik, bool reset, bool checkFocus) |
| 110 | { |
no outgoing calls
no test coverage detected