summaryrefslogtreecommitdiff
path: root/sly/input
Commit message (Collapse)AuthorAgeFilesLines
* math: Rewrite vector math library to use packed f64 bytevectors.David Thompson2016-02-271-2/+4
| | | | | | | | | | | | | | | | | | | | The big consequence of this change to the rest of the codebase is that we can no longer use record destructuring when pattern matching, so I had to rewrite every place where pattern matching was used. It was probably a bad idea to expose the record type descriptors publicly in the first place. * sly/math/vector.scm: Reimplement everything in terms of an f64 packed bytevector record type. Do not expose record type descriptors. * sly/game.scm (run-game-loop): Convert viewport width/height to exact numbers. * sly/window.scm (open-window): Likewise. * sly/input/mouse.scm (mouse-position): Rewrite pattern matching. * sly/math/quaternion (make-quaternion, vector->quaternion): Likewise. * sly/math/rect.scm (rect-clamp): Likewise. * sly/math/transform.scm (translate!, translate, scale): Likewise. * sly/render/mesh.scm (vertices-bytevector): Likewise. * examples/mines/mines.scm: Likewise.
* Upgrade to SDL2!David Thompson2015-12-223-204/+25
| | | | | | This commit is massive and crazy and I'm not going to do the usual GNU ChangeLog thing because it's just too much. Let's just be happy that the port is completed!
* input: mouse: Fix typo in comment.David Thompson2014-12-071-1/+1
| | | | * sly/input/mouse.scm: Fix typo.
* input: mouse: Invert y-axis.David Thompson2014-12-061-1/+5
| | | | * sly/input/mouse.scm (mouse-position): Invert y-axis.
* input: keyboard: Reverse up/down in key-directions.David Thompson2014-11-291-2/+2
| | | | * sly/input/keyboard.scm (key-directions): Reverse up and down.
* input: Move joystick module to sly/input directory.David Thompson2014-11-081-0/+171
| | | | | | | * sly/joystick.scm: Delete. * sly/input/joystick.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * examples/joystick.scm: Use (sly input joystick) module.
* input: Move mouse module to sly/input directory.David Thompson2014-11-081-0/+98
| | | | | | | * sly/mouse.scm: Delete. * sly/input/mouse.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * examples/font.scm: Use (sly input mouse).
* input: Move keyboard module to sly/input directory.David Thompson2014-11-081-0/+88
* sly/keyboard.scm: Delete. * sly/input/keyboard.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old file. * examples/common.scm: Use (sly input keyboard). * examples/tilemap.scm: Likewise.