Google Keyboard Problems with LÖVE
Posted: Thu Apr 07, 2016 6:21 pm
I believe there is a bug with LÖVE on android.
On the Nexus six, with the google keyboard as its text input method, pressing backspace will result in LÖVE saying the button is being held down. It continues saying this even after text input is disabled and re-enabled. However, this problem does not occur on my LG G4, which uses the LG keyboard. I'm not sure if there is a workaround for this.
This code demonstrates the problem:
On the Nexus six, with the google keyboard as its text input method, pressing backspace will result in LÖVE saying the button is being held down. It continues saying this even after text input is disabled and re-enabled. However, this problem does not occur on my LG G4, which uses the LG keyboard. I'm not sure if there is a workaround for this.
This code demonstrates the problem:
Code: Select all
function love.load()
love.keyboard.hasTextInput(true)
fon = love.graphics.newFont(16*love.window.getPixelScale())
love.graphics.setFont(fon)
end
function love.draw()
--VV This always dispays true once the backspace on the google keyboard is pressed
love.graphics.print(tostring(love.keyboard.isDown("backspace")), 0, 0 )
end