ebiten/internal/ui/keys.go
2015-01-07 03:05:59 +09:00

89 lines
1.1 KiB
Go

// Copyright 2015 Hajime Hoshi
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package ui
type Key int
const (
Key0 Key = iota
Key1
Key2
Key3
Key4
Key5
Key6
Key7
Key8
Key9
KeyA
KeyB
KeyC
KeyCapsLock
KeyComma
KeyD
KeyDelete
KeyDown
KeyE
KeyEnd
KeyEnter
KeyEscape
KeyF
KeyF1
KeyF10
KeyF11
KeyF12
KeyF2
KeyF3
KeyF4
KeyF5
KeyF6
KeyF7
KeyF8
KeyF9
KeyG
KeyH
KeyHome
KeyI
KeyInsert
KeyJ
KeyK
KeyL
KeyLeft
KeyLeftAlt
KeyLeftControl
KeyLeftShift
KeyM
KeyN
KeyO
KeyP
KeyPageDown
KeyPageUp
KeyPeriod
KeyQ
KeyR
KeyRight
KeyS
KeySpace
KeyT
KeyTab
KeyU
KeyUp
KeyV
KeyW
KeyX
KeyY
KeyZ
)