From c5bdb5b1d8893abaf171520412479fb31a697a41 Mon Sep 17 00:00:00 2001 From: Saracen Date: Thu, 7 Jun 2018 21:16:57 +0100 Subject: IME context detection. --- core/bind/core_bind.cpp | 5 +++++ core/bind/core_bind.h | 1 + 2 files changed, 6 insertions(+) (limited to 'core/bind') diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index b7f20588f2..372cff4412 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 1de5e43b27..560d9e9873 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); -- cgit v1.2.3