MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / updateIMEPosHint

Method updateIMEPosHint

Source/Input/Keyboard.cpp:219–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void Keyboard::updateIMEPosHint(const Vec2& winPos) {
220 int offsetY =
221#if BX_PLATFORM_IOS || BX_PLATFORM_ANDROID
222 45;
223#else
224 0;
225#endif
226 SDL_Rect rc = {s_cast<int>(winPos.x), s_cast<int>(winPos.y) + offsetY, 0, 0};
227 SharedApplication.invokeInRender([rc]() {
228 SDL_SetTextInputRect(c_cast<SDL_Rect*>(&rc));
229 });
230}
231
232void Keyboard::handleEvent(const SDL_Event& event) {
233 switch (event.type) {

Callers

nothing calls this directly

Calls 2

SDL_SetTextInputRectFunction · 0.85
invokeInRenderMethod · 0.80

Tested by

no test coverage detected