| 217 | } |
| 218 | |
| 219 | void 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 | |
| 232 | void Keyboard::handleEvent(const SDL_Event& event) { |
| 233 | switch (event.type) { |
nothing calls this directly
no test coverage detected