[0.9.0] love.textinput

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
metzyn
Prole
Posts: 6
Joined: Wed Mar 27, 2013 10:51 pm
Location: TN, USA

[0.9.0] love.textinput

Post 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
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: [0.9.0] love.textinput

Post 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.
Post Reply

Who is online

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