I tried to use fmt!("%?", sdl::event::get_key_state()) and it failed with
rust: task failed at 'enum value matched no variant', [...]/rust/src/libcore/repr.rs:628
The first (Key, bool) pair at fault seems to be the one where the Key tag is represented by 10, which isn't filtered by wrap_key() yet isn't defined as a variant of the enum, so I guess it's not filtering the right ranges.
I tried to use
fmt!("%?", sdl::event::get_key_state())
and it failed withThe first
(Key, bool)
pair at fault seems to be the one where theKey
tag is represented by 10, which isn't filtered bywrap_key()
yet isn't defined as a variant of the enum, so I guess it's not filtering the right ranges.