aboutsummaryrefslogtreecommitdiffstats
path: root/keyboard.lua
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug in input.lua, make 0.9-ready, add utf8 editingMatthias Richter2013-12-111-7/+13
| | | | | | | | | | 1) [input.lua] Pressing backspace while the cursor was at the beggining of the text removed the first character. Fixed thanks to riidom. 2) [LÖVE 0.9] Use setLine(Width|Style) instead of setLine. Split keyboard.pressed() into keyboard.pressed() and keyboard.textinput(). (see readme) 3) [utf8.lua] Add support for UTF-8 text editing. May still fail spectacurlarly with invalid UTF-8 strings.
* Fix #11: Right click support.Matthias Richter2013-11-041-0/+5
| | | | | | | When clicked, Button() and Input() return the respective mouse button constant ('l', 'r', 'm') instead of just true. When activated by keyboard, Button() and Input() return 'return'. Otherwise Button() and Input() return false.
* Fix #7: Pressing return crashes Input.Matthias Richter2013-03-241-1/+5
| | | | | Add arguments to call of keyboard.pressed() in input.lua. Add sanity check to keyboard.pressed().
* Add gui.keyboard.getFocus() and gui.mouse.getHot()Matthias Richter2012-12-151-5/+7
|
* Rename (dis|en)ableFocus() to (dis|en)able()Matthias Richter2012-10-101-3/+4
|
* Fix #4: keyboard.disableFocus() not working.Matthias Richter2012-09-031-0/+1
| | | | | Used undefined variable NO_WIDGET to clear keyboard focus. Same error was made in mouse.lua.
* Mega update: Auto layout, code cleanup, api change.Matthias Richter2012-05-091-0/+89
Basically half a rewrite.