ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_update_cursor_position(ic, ic_uuid.c_str(), cursor_pos);
+#ifdef WEBSOCKET
+ g_websocket.on_update_cursor_position(ic, cursor_pos);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_update_surrounding_text(ic, text.c_str(), cursor);
+#ifdef WEBSOCKET
+ g_websocket.on_update_surrounding_text(ic, text.c_str(), cursor);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_focus_out(ic, ic_uuid.c_str());
+#ifdef WEBSOCKET
+ g_websocket.on_focus_out(ic);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_focus_in(ic, ic_uuid.c_str());
+#ifdef WEBSOCKET
+ g_websocket.on_focus_in(ic);
+#endif
}
}
}
}
#ifdef WEBSOCKET
+ g_websocket.on_set_layout(ise_context.layout);
g_websocket.on_show(ic);
#endif
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_set_language(language);
+#ifdef WEBSOCKET
+ g_websocket.on_set_language(language);
+#endif
}
}
}
if (callback) {
scl32 _len = static_cast<scl32>(reinterpret_cast<size_t>(len) & 0xffffffff);
callback->on_set_imdata(buf, _len);
+#ifdef WEBSOCKET
+ g_websocket.on_set_imdata(buf, len);
+#endif
}
}
}
if (callback) {
sclu32 _len = 0;
callback->on_get_imdata(buf, &_len);
+#ifdef WEBSOCKET
+ g_websocket.on_get_imdata(buf, &_len);
+#endif
len = _len;
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_set_return_key_type(type);
+#ifdef WEBSOCKET
+ g_websocket.on_set_return_key_type(type);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_get_return_key_type(&type);
+#ifdef WEBSOCKET
+ g_websocket.on_get_return_key_type(&type);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_set_return_key_disable(disabled);
+#ifdef WEBSOCKET
+ g_websocket.on_set_return_key_disable(disabled);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_get_return_key_disable(&disabled);
+#ifdef WEBSOCKET
+ g_websocket.on_get_return_key_disable(&disabled);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_set_layout(layout);
+#ifdef WEBSOCKET
+ g_websocket.on_set_layout(layout);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_get_layout(&layout);
+#ifdef WEBSOCKET
+ g_websocket.on_get_layout(&layout);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_reset_input_context(ic, uuid.c_str());
+#ifdef WEBSOCKET
+ g_websocket.on_reset_input_context(ic);
+#endif
}
}
}
ISCLCoreEventCallback *callback = impl->get_core_event_callback();
if (callback) {
callback->on_process_key_event(key, &ret);
+#ifdef WEBSOCKETweb_ret
+ g_websocket.on_process_key_event(key.code, key.mask, key.layout, &ret);
+#endif
}
}
}