Reputation: 1065
Simple Question. I am trying to get keyboard text in Love2d 11.1 with the following code in main.lua:
function love.load()
text = "TextInput setting is: " .. tostring(love.keyboard.hasTextInput())
text = text .. ". Type away! -- "
end
function love.textinput(t)
text = text .. t
end
function love.draw()
love.graphics.printf(text, 0, 0, love.graphics.getWidth())
end
But the code on love.textinput is never called. Anyone know why?
Upvotes: 0
Views: 56
Reputation: 1065
For anyone finding this. The love2d 11.1 snap package showed the problematic behaviour. Upgrading to the love2d 11.2 AppImage solved the problem.
Upvotes: 1