From 9a632324b7ecb4b9641426d8c1b17816135e7143 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Fri, 24 Mar 2017 11:07:27 +0800 Subject: [PATCH] Add TextInput in SDLSystem --- MiniEngine.cpp | 10 ++++++++++ MiniEngine.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/MiniEngine.cpp b/MiniEngine.cpp index 886307a..d0df5b2 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -738,6 +738,16 @@ namespace MiniEngine } } + void SDLSystem::StartTextInput() + { + SDL_StartTextInput(); + } + + void SDLSystem::StopTextInput() + { + SDL_StopTextInput(); + } + AudioPlayer::AudioPlayer() { if (!_sysAudioCounter) diff --git a/MiniEngine.h b/MiniEngine.h index c809e86..c296c30 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -257,6 +257,9 @@ namespace MiniEngine static Platform GetPlatform(); + static void StartTextInput(); + static void StopTextInput(); + class Android { public: