Better mobile integration (allows text input)
This commit is contained in:
parent
2b63a81c87
commit
315c250ffb
1 changed files with 7 additions and 0 deletions
7
core.lua
7
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue