aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index bb76e4c..734202c 100644
--- a/README.md
+++ b/README.md
@@ -135,7 +135,16 @@ Quickie is an [immediate mode gui][IMGUI] library for [LÖVE][LOVE]. Initial
end
function love.keypressed(key, code)
- gui.keyboard.pressed(key, code)
+ gui.keyboard.pressed(key)
+ -- LÖVE 0.8: see if this code can be converted in a character
+ if pcall(string.char, code) code > 0 then
+ gui.keyboard.textinput(string.char(code))
+ end
+ end
+
+ -- LÖVE 0.9
+ function love.textinput(str)
+ gui.keyboard.textinput(str)
end
# Documentation