Better mobile integration (allows text input)

This commit is contained in:
WetDesertRock 2016-01-02 22:41:04 -08:00
parent 2b63a81c87
commit 315c250ffb

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