Commit graph

7 commits

Author SHA1 Message Date
Matthias Richter
66a089a07f Fix bug in input.lua, make 0.9-ready, add utf8 editing
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.
2013-12-11 15:25:06 +01:00
Matthias Richter
ffd187dc17 Fix #11: Right click support.
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.
2013-11-04 21:52:36 +01:00
Matthias Richter
43265a44ca Fix #7: Pressing return crashes Input.
Add arguments to call of keyboard.pressed() in input.lua.
Add sanity check to keyboard.pressed().
2013-03-24 19:59:27 +01:00
Matthias Richter
faa295651a Add gui.keyboard.getFocus() and gui.mouse.getHot() 2012-12-15 15:58:52 +01:00
Matthias Richter
24c3cc18c5 Rename (dis|en)ableFocus() to (dis|en)able() 2012-10-10 15:20:45 +02:00
Matthias Richter
d3b1a1c00d Fix #4: keyboard.disableFocus() not working.
Used undefined variable NO_WIDGET to clear keyboard focus.
Same error was made in mouse.lua.
2012-09-03 15:30:17 +02:00
Matthias Richter
adc7887587 Mega update: Auto layout, code cleanup, api change.
Basically half a rewrite.
2012-05-09 21:27:45 +02:00