Google Keyboard Problems with LÖVE

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
CapitalEx
Prole
Posts: 8
Joined: Fri Jul 24, 2015 2:33 am

Google Keyboard Problems with LÖVE

Post by CapitalEx »

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:

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
~~<Ɵ/\/\_: *snake noises*
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests