The bug in input.lua should now be fixed, but I couldn't reproduce the slider2d.lua. I also added basic UTF-8 editing support (this file could also be interesting for other projects) to support umlauts and the like. However, due to the way 0.8 handles text input, this will only work properly in LÖVE 0.9. For this keyboard.pressed(key, code) was split into keyboard.pressed(key) and keyboard.textinput(str). Porting for these changes is straigtforward:
LÖVE 0.8
Code: Select all
function love.keypressed(key, code)
gui.keyboard.pressed(key)
if code >= 32 and code < 127 then -- old behavior
gui.keyboard.textinput(string.char(code))
end
end
Code: Select all
function love.keypressed(key, code)
gui.keyboard.pressed(key)
end
function love.textinput(str)
gui.keyboard.textinput(str) -- yay, utf8!
end