Saggi Mizrahi
944a250ec5
Allow overriding of the mouse position getter.
...
Useful if the ui is positioned behind the camera as opposed as in front
of it.
Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
2014-05-10 19:11:23 +03: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
ebe0ce2ac0
Fix #8 : Misnamed function in mouse.disable()
2013-03-24 19:53:20 +01:00
Matthias Richter
cb553037e7
Fully disable mouse module on mouse.disable
2013-01-23 12:38:26 +01:00
Matthias Richter
faa295651a
Add gui.keyboard.getFocus() and gui.mouse.getHot()
2012-12-15 15:58:52 +01:00
Matthias Richter
c85a877dcc
Add gui.mouse.disable(), gui.mouse.enable()
2012-10-10 15:21:06 +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