Page 1 of 1

[0.9.0] love.textinput

Posted: Thu Oct 03, 2013 5:44 pm
by metzyn
I am having an issue with love.textinput. In fact, it doesn't seem to work at all and am unsure as to what I am doing incorrectly. I tried using the example code from the wiki but that doesn't even work. When I press keys nothing happens at all. I am using the most up-to-date nightly build of 0.9.0.

Code: Select all

function love.load()
    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

Re: [0.9.0] love.textinput

Posted: Thu Oct 03, 2013 6:41 pm
by slime
In case anyone else runs into the same problem: the builds at http://nightly.projecthawkthorne.com haven't been updated in over a month unfortunately, not since before love.textinput and many other things were added.

If you're on Windows, you can download Boolsheet's semi-nightly builds of 0.9.0, they tend to be updated much more frequently: 32 bit or 64 bit.