MCPcopy Create free account
hub / github.com/SatDump/SatDump / tick

Function tick

android/main.cpp:121–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void 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
143void shutdown()
144{

Callers 1

android_mainFunction · 0.85

Calls 4

PollUnicodeCharsFunction · 0.85
ShowSoftKeyboardInputFunction · 0.85
HideSoftKeyboardInputFunction · 0.85
renderMainUIFunction · 0.85

Tested by

no test coverage detected