brson / rust-sdl

SDL bindings for Rust
MIT License
179 stars 52 forks source link

Correctly filter out unused keynums in wrap_key. Fixes #57 #78

Closed AngryLawyer closed 11 years ago

AngryLawyer commented 11 years ago

As stated, this fixes issue #57 - a couple of errant numbers weren't being filtered out before being converted into the keypress enum.

I'll merge this in over the weekend if nobody tells me otherwise.