Bug fix: Add 'backspace' to example/keyboard

This commit is contained in:
Hajime Hoshi 2015-01-07 11:28:49 +09:00
parent 2a3d41ba9a
commit ba5f613f44

View File

@ -30,13 +30,14 @@ const (
// TODO: Add Key.String() by stringer // TODO: Add Key.String() by stringer
var keyNames = map[ebiten.Key]string{ var keyNames = map[ebiten.Key]string{
ebiten.KeyComma: "','", ebiten.KeyBackspace: "Backspace",
ebiten.KeyDelete: "Delete", ebiten.KeyComma: "','",
ebiten.KeyEnter: "Enter", ebiten.KeyDelete: "Delete",
ebiten.KeyEscape: "Escape", ebiten.KeyEnter: "Enter",
ebiten.KeyPeriod: "'.'", ebiten.KeyEscape: "Escape",
ebiten.KeySpace: "Space", ebiten.KeyPeriod: "'.'",
ebiten.KeyTab: "Tab", ebiten.KeySpace: "Space",
ebiten.KeyTab: "Tab",
// Arrows // Arrows
ebiten.KeyDown: "Down", ebiten.KeyDown: "Down",