| 192 | } |
| 193 | |
| 194 | void Keyboard::attachIME(const KeyboardHandler& handler) { |
| 195 | if (_imeHandler) { |
| 196 | Event detachEvent("DetachIME"_slice); |
| 197 | _imeHandler(&detachEvent); |
| 198 | } else { |
| 199 | SharedApplication.invokeInRender(SDL_StartTextInput); |
| 200 | } |
| 201 | _imeHandler = handler; |
| 202 | Event attachEvent("AttachIME"_slice); |
| 203 | _imeHandler(&attachEvent); |
| 204 | } |
| 205 | |
| 206 | void Keyboard::detachIME() { |
| 207 | if (_imeHandler) { |
nothing calls this directly
no test coverage detected