| 1049 | } |
| 1050 | |
| 1051 | bool onCharacterInput(const CharacterInputEvent& ev) override |
| 1052 | { |
| 1053 | #ifdef DPF_RUNTIME_TESTING |
| 1054 | if (inSelfTest) return false; |
| 1055 | #endif |
| 1056 | |
| 1057 | if (ev.character < ' ' || ev.character >= kKeyDelete) |
| 1058 | return false; |
| 1059 | |
| 1060 | const int mods = glfwMods(ev.mod); |
| 1061 | const ScopedContext sc(this, mods); |
| 1062 | return context->event->handleText(lastMousePos, ev.character); |
| 1063 | } |
| 1064 | |
| 1065 | bool onKeyboard(const KeyboardEvent& ev) override |
| 1066 | { |
nothing calls this directly
no test coverage detected