Skip to content

Commit

Permalink
Fix the space key
Browse files Browse the repository at this point in the history
Space is a termbox.Key rather than a termbox.Ch, but we weren't handling
it. Map it back to the SP rune.
  • Loading branch information
lilyball committed Apr 26, 2012
1 parent c8ce37b commit 07fe361
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keymap.go
Expand Up @@ -9,6 +9,7 @@ import (

var keymapTermboxKeyToRune = map[termbox.Key]rune{
termbox.KeyDelete: 127,
termbox.KeySpace: 0x20,
}

var keymapTermboxKeyToKey = map[termbox.Key]dcpu.Key{
Expand Down

0 comments on commit 07fe361

Please sign in to comment.