From d9ddfea4df8be7d0a4faba7016483838dd803aa7 Mon Sep 17 00:00:00 2001 From: rxi Date: Sun, 25 Sep 2016 15:02:46 +0100 Subject: [PATCH] Added love.textinput() to doc/api.md --- doc/api.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api.md b/doc/api.md index 51ec7c4..c195254 100644 --- a/doc/api.md +++ b/doc/api.md @@ -266,6 +266,10 @@ the raw integer scancode value for the pressed key. Called when the user releases a key. `key` is the key that was released, `code` is the raw integer scancode value for the released key. +##### love.textinput(text) +Called when text has been entered by the user. For example if shift-2 is pressed +on an American keyboard layout, the text "@" will be generated. + ##### love.mousemoved(x, y, dx, dy) Called when the user moves the mouse. `x` and `y` are the mouse's current position, `dx` and `dy` is the amount moved relative to the last mouse position.