summaryrefslogtreecommitdiff
path: root/2d/mouse.scm
Commit message (Collapse)AuthorAgeFilesLines
* Use new signal API for mouse module.David Thompson2014-02-171-27/+41
| | | | | * 2d/mouse.scm (mouse-x, mouse-y, mouse-position, mouse-last-down) (mouse-last-up, mouse-down?): Use new signal API.
* Move SDL event handling to a separate module.David Thompson2014-01-261-1/+1
| | | | | | | | | | | | * 2d/event.scm: New module. * 2d/game.scm: Remove event handling code. * 2d/keyboard.scm: Import (2d event) instead of (2d game). * 2d/mouse.scm: Import (2d event) instead of (2d game). * 2d/window.scm: Import (2d event) instead of (2d game).
* Add mouse move/press/click hooks.David Thompson2014-01-091-3/+20
| | | | | * 2d/mouse.scm (mouse-move-hook, mouse-press-hook) (mouse-click-hook): New hooks.
* Update mouse module to use new signal API.David Thompson2013-12-151-14/+19
| | | | | * 2d/mouse.scm (mouse-x, mouse-y): New signals. (mouse-position): Define in terms of signal-map.
* Make init a non-keyword argument in make-signal procedure.David Thompson2013-12-121-1/+1
| | | | | | | * 2d/signals.scm (make-signal): Change parameter list. * 2d/mouse.scm (mouse-position): Remove #:init keyword. * 2d/time.scm (time-interval, time-delay): Remove #:init keyword. * 2d/window.scm (window-size): Remove #:init keyword.
* Move event handlers and signals into their own modules.David Thompson2013-12-011-0/+63
* 2d/game.scm (register-event-handler): New procedure. (mouse-*, key-*, window-*): Remove signals. * 2d/window.scm (window-size): New signal. * 2d/mouse.scm: New module. * 2d/keyboard.scm: New module.