aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSaracen2018-06-07 21:16:57 +0100
committerSaracen2018-06-11 17:22:11 +0100
commitc5bdb5b1d8893abaf171520412479fb31a697a41 (patch)
tree7fb2d0216e5496c19ecb52ea9b4e0dc1155f4816 /core
parent76875ba145c5745033d0a1c9fda2f4349e2509b3 (diff)
downloadgodot-c5bdb5b1d8893abaf171520412479fb31a697a41.tar.gz
godot-c5bdb5b1d8893abaf171520412479fb31a697a41.tar.zst
godot-c5bdb5b1d8893abaf171520412479fb31a697a41.zip
Diffstat (limited to 'core')
-rw-r--r--core/bind/core_bind.cpp5
-rw-r--r--core/bind/core_bind.h1
-rw-r--r--core/os/os.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index b7f20588f..372cff441 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -348,6 +348,11 @@ bool _OS::get_borderless_window() const {
return OS::get_singleton()->get_borderless_window();
}
+void _OS::set_ime_active(const bool p_active) {
+
+ return OS::get_singleton()->set_ime_active(p_active);
+}
+
void _OS::set_ime_position(const Point2 &p_pos) {
return OS::get_singleton()->set_ime_position(p_pos);
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h
index 1de5e43b2..560d9e987 100644
--- a/core/bind/core_bind.h
+++ b/core/bind/core_bind.h
@@ -183,6 +183,7 @@ public:
virtual bool get_window_per_pixel_transparency_enabled() const;
virtual void set_window_per_pixel_transparency_enabled(bool p_enabled);
+ virtual void set_ime_active(const bool p_active);
virtual void set_ime_position(const Point2 &p_pos);
Error native_video_play(String p_path, float p_volume, String p_audio_track, String p_subtitle_track);
diff --git a/core/os/os.h b/core/os/os.h
index b36f94060..adf01a90e 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -232,6 +232,7 @@ public:
virtual Size2 get_layered_buffer_size() { return Size2(0, 0); }
virtual void swap_layered_buffer() {}
+ virtual void set_ime_active(const bool p_active) {}
virtual void set_ime_position(const Point2 &p_pos) {}
virtual void set_ime_intermediate_text_callback(ImeCallback p_callback, void *p_inp) {}