| 119 | } |
| 120 | |
| 121 | void tick() |
| 122 | { |
| 123 | ImGuiIO& io = ImGui::GetIO(); |
| 124 | if (g_EglDisplay == EGL_NO_DISPLAY) |
| 125 | return; |
| 126 | |
| 127 | // Poll Unicode characters via JNI |
| 128 | // FIXME: do not call this every frame because of JNI overhead |
| 129 | PollUnicodeChars(); |
| 130 | |
| 131 | // Open on-screen (soft) input if requested by Dear ImGui |
| 132 | static bool WantTextInputLast = false; |
| 133 | if (io.WantTextInput && !WantTextInputLast) |
| 134 | ShowSoftKeyboardInput(); |
| 135 | if (!io.WantTextInput && WantTextInputLast) |
| 136 | HideSoftKeyboardInput(); |
| 137 | WantTextInputLast = io.WantTextInput; |
| 138 | |
| 139 | // Rendering |
| 140 | satdump::renderMainUI(); |
| 141 | } |
| 142 | |
| 143 | void shutdown() |
| 144 | { |
no test coverage detected