lispgames / cl-sdl2

Common Lisp bindings for SDL2 using C2FFI.
MIT License
304 stars 82 forks source link

Move two very useful functions into the upstream cl-sdl2 project. #62

Closed Aethaeryn closed 8 years ago

Aethaeryn commented 8 years ago

Both functions are simple and currently used in my game engine project.

get-window-aspect-ratio can be used as input for the perspective GL matrix.

scancode-symbol returns the symbol associated with the number, e.g. (sdl2:scancode-symbol 43) returns :SCANCODE-TAB

I fixed the merge issues with pull request #61 by using the up to date cl-sdl2 and doing the changes again in a new commit.

rpav commented 8 years ago

Looks good. ;) Thanks!