Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | events: keyboard: Add additional predicates. | David Thompson | 2015-12-16 | 1 | -0/+12 |
| | | | | * sdl2/events.scm (keyboard-down-event?, keyboard-up-event?): New procedures. | ||||
* | events: Add mouse button event bindings. | David Thompson | 2015-12-16 | 1 | -0/+70 |
| | | | | | | | | | | | | | * sdl2/bindings.scm (SDL_BUTTON_LEFT, SDL_BUTTON_RIGHT, SDL_BUTTON_MIDDLE, SDL_BUTTON_X1, SDL_BUTTON_X2): New variables. * sdl2/events.scm (<mouse-button-event>): New record type. (make-mouse-button-event, mouse-button-event?, mouse-button-down-event?, mouse-button-up-event?, mouse-button-event-timestamp, mouse-button-event-window-id, mouse-button-event-which, mouse-button-event-button, mouse-button-event-pressed?, mouse-button-event-clicks, mouse-button-event-x, parse-mouse-button-event): New procedures. (poll-event): Add support for mouse button events. | ||||
* | Add event bindings. | David Thompson | 2015-12-16 | 1 | -0/+673 |
So far, only window and keyboard events are handled. More to come in future patches. This patch adds a *ton* of constants that I'm not going to mention in this log because it would be too damn long. * sdl2/bindings.scm (sdl-poll-event): New procedure. * sdl2/events.scm: New file. * Makefile.am (SOURCES): Add it. |