Commit Graph

9 Commits

Author SHA1 Message Date
rxi
d0c361a451 Updated copyright year; 2016 -> 2017 2017-01-13 22:40:12 +00:00
rxi
de01a59eeb Changed mouse and keyboard to push directly to event.c's queue 2016-10-16 11:41:56 +01:00
rxi
a5c66d6154 Added event.c/h and lua binding
* Changed mouse.c to mimic keyboard.c
* Changed boot.lua to use event.poll() instead of mouse/keyboard.poll()
* Removed love.keyboard.poll()
2016-10-15 19:15:05 +01:00
rxi
ac83ecf23c Separated lua bindings from mouse.c 2016-10-15 15:52:16 +01:00
rxi
4f771230fb Replaced use of lua_opt/checkint(eger) with lua_opt/checknumber
Using lua_check/opt/tonumber() assures a non-integer number is floored
when cast to an int, in contrast to lua_tointeger() which is "truncated
in some non-specified way."
2016-10-14 21:48:25 +01:00
rxi
45e5b32ce4 Removed redundant line from mouse_init() 2016-09-24 12:48:54 +01:00
rxi
09e5bb0628 Renamed getEvents() -> poll() on love.mouse/keyboard
Rolled love.mouse.update() into love.mouse.poll()
2016-09-24 11:02:49 +01:00
rxi
c8453c6f60 Implemented love.mouse.getEvents() and mouse callbacks 2016-09-24 10:58:02 +01:00
rxi
dd44e8d1a0 Added mouse module (love.mouse), updated doc/files.md 2016-09-24 10:42:22 +01:00