mp035
mp035

Reputation: 1065

love.textinput never called Love2d 11.1 on Linux

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

Answers (1)

mp035
mp035

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

Related Questions