From 315c250ffbc6b103c5889b320d0c76998133487d Mon Sep 17 00:00:00 2001 From: WetDesertRock Date: Sat, 2 Jan 2016 22:41:04 -0800 Subject: [PATCH] Better mobile integration (allows text input) --- core.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core.lua b/core.lua index 296429c..466eaec 100644 --- a/core.lua +++ b/core.lua @@ -81,6 +81,13 @@ end local function grabKeyboardFocus(id) if isActive(id) then keyboardFocus = id + if love.system.getOS() == "Android" or love.system.getOS() == "iOS" then + if id == NONE then + love.keyboard.setTextInput( false ) + else + love.keyboard.setTextInput( true ) + end + end end end