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

Method attachIME

Source/Input/Keyboard.cpp:194–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void 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
206void Keyboard::detachIME() {
207 if (_imeHandler) {

Callers

nothing calls this directly

Calls 1

invokeInRenderMethod · 0.80

Tested by

no test coverage detected