Merge pull request #24 from WetDesertRock/patch-1

Better mobile integration (allows text input)
This commit is contained in:
vrld 2016-01-03 14:52:36 +01:00
commit f77ab8e5e8

View file

@ -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