2016-08-26 17:50:26 +02:00
|
|
|
// Copyright 2013 The Ebiten Authors
|
2014-12-24 03:04:10 +01:00
|
|
|
//
|
|
|
|
// 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.
|
2014-12-14 08:53:32 +01:00
|
|
|
|
2018-03-07 18:47:59 +01:00
|
|
|
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
2015-01-07 15:21:52 +01:00
|
|
|
|
2014-12-14 08:53:32 +01:00
|
|
|
package ebiten
|
|
|
|
|
2015-01-01 17:20:20 +01:00
|
|
|
import (
|
|
|
|
"github.com/hajimehoshi/ebiten/internal/ui"
|
|
|
|
)
|
|
|
|
|
2014-12-14 14:05:44 +01:00
|
|
|
// A Key represents a keyboard key.
|
2017-04-10 03:45:04 +02:00
|
|
|
// These keys represent pysical keys of US keyboard.
|
2017-07-23 15:49:04 +02:00
|
|
|
// For example, KeyQ represents Q key on US keyboards and ' (quote) key on Dvorak keyboards.
|
2014-12-14 08:53:32 +01:00
|
|
|
type Key int
|
|
|
|
|
2014-12-14 14:05:44 +01:00
|
|
|
// Keys
|
2014-12-14 08:53:32 +01:00
|
|
|
const (
|
2017-09-30 18:59:34 +02:00
|
|
|
Key0 Key = Key(ui.Key0)
|
|
|
|
Key1 Key = Key(ui.Key1)
|
|
|
|
Key2 Key = Key(ui.Key2)
|
|
|
|
Key3 Key = Key(ui.Key3)
|
|
|
|
Key4 Key = Key(ui.Key4)
|
|
|
|
Key5 Key = Key(ui.Key5)
|
|
|
|
Key6 Key = Key(ui.Key6)
|
|
|
|
Key7 Key = Key(ui.Key7)
|
|
|
|
Key8 Key = Key(ui.Key8)
|
|
|
|
Key9 Key = Key(ui.Key9)
|
|
|
|
KeyA Key = Key(ui.KeyA)
|
|
|
|
KeyB Key = Key(ui.KeyB)
|
|
|
|
KeyC Key = Key(ui.KeyC)
|
|
|
|
KeyD Key = Key(ui.KeyD)
|
|
|
|
KeyE Key = Key(ui.KeyE)
|
|
|
|
KeyF Key = Key(ui.KeyF)
|
|
|
|
KeyG Key = Key(ui.KeyG)
|
|
|
|
KeyH Key = Key(ui.KeyH)
|
|
|
|
KeyI Key = Key(ui.KeyI)
|
|
|
|
KeyJ Key = Key(ui.KeyJ)
|
|
|
|
KeyK Key = Key(ui.KeyK)
|
|
|
|
KeyL Key = Key(ui.KeyL)
|
|
|
|
KeyM Key = Key(ui.KeyM)
|
|
|
|
KeyN Key = Key(ui.KeyN)
|
|
|
|
KeyO Key = Key(ui.KeyO)
|
|
|
|
KeyP Key = Key(ui.KeyP)
|
|
|
|
KeyQ Key = Key(ui.KeyQ)
|
|
|
|
KeyR Key = Key(ui.KeyR)
|
|
|
|
KeyS Key = Key(ui.KeyS)
|
|
|
|
KeyT Key = Key(ui.KeyT)
|
|
|
|
KeyU Key = Key(ui.KeyU)
|
|
|
|
KeyV Key = Key(ui.KeyV)
|
|
|
|
KeyW Key = Key(ui.KeyW)
|
|
|
|
KeyX Key = Key(ui.KeyX)
|
|
|
|
KeyY Key = Key(ui.KeyY)
|
|
|
|
KeyZ Key = Key(ui.KeyZ)
|
|
|
|
KeyAlt Key = Key(ui.KeyAlt)
|
|
|
|
KeyApostrophe Key = Key(ui.KeyApostrophe)
|
|
|
|
KeyBackslash Key = Key(ui.KeyBackslash)
|
|
|
|
KeyBackspace Key = Key(ui.KeyBackspace)
|
|
|
|
KeyCapsLock Key = Key(ui.KeyCapsLock)
|
|
|
|
KeyComma Key = Key(ui.KeyComma)
|
|
|
|
KeyControl Key = Key(ui.KeyControl)
|
|
|
|
KeyDelete Key = Key(ui.KeyDelete)
|
|
|
|
KeyDown Key = Key(ui.KeyDown)
|
|
|
|
KeyEnd Key = Key(ui.KeyEnd)
|
|
|
|
KeyEnter Key = Key(ui.KeyEnter)
|
|
|
|
KeyEqual Key = Key(ui.KeyEqual)
|
|
|
|
KeyEscape Key = Key(ui.KeyEscape)
|
|
|
|
KeyF1 Key = Key(ui.KeyF1)
|
|
|
|
KeyF2 Key = Key(ui.KeyF2)
|
|
|
|
KeyF3 Key = Key(ui.KeyF3)
|
|
|
|
KeyF4 Key = Key(ui.KeyF4)
|
|
|
|
KeyF5 Key = Key(ui.KeyF5)
|
|
|
|
KeyF6 Key = Key(ui.KeyF6)
|
|
|
|
KeyF7 Key = Key(ui.KeyF7)
|
|
|
|
KeyF8 Key = Key(ui.KeyF8)
|
|
|
|
KeyF9 Key = Key(ui.KeyF9)
|
|
|
|
KeyF10 Key = Key(ui.KeyF10)
|
|
|
|
KeyF11 Key = Key(ui.KeyF11)
|
|
|
|
KeyF12 Key = Key(ui.KeyF12)
|
|
|
|
KeyGraveAccent Key = Key(ui.KeyGraveAccent)
|
|
|
|
KeyHome Key = Key(ui.KeyHome)
|
|
|
|
KeyInsert Key = Key(ui.KeyInsert)
|
|
|
|
KeyLeft Key = Key(ui.KeyLeft)
|
|
|
|
KeyLeftBracket Key = Key(ui.KeyLeftBracket)
|
|
|
|
KeyMinus Key = Key(ui.KeyMinus)
|
|
|
|
KeyPageDown Key = Key(ui.KeyPageDown)
|
|
|
|
KeyPageUp Key = Key(ui.KeyPageUp)
|
|
|
|
KeyPeriod Key = Key(ui.KeyPeriod)
|
|
|
|
KeyRight Key = Key(ui.KeyRight)
|
|
|
|
KeyRightBracket Key = Key(ui.KeyRightBracket)
|
|
|
|
KeySemicolon Key = Key(ui.KeySemicolon)
|
|
|
|
KeyShift Key = Key(ui.KeyShift)
|
|
|
|
KeySlash Key = Key(ui.KeySlash)
|
|
|
|
KeySpace Key = Key(ui.KeySpace)
|
|
|
|
KeyTab Key = Key(ui.KeyTab)
|
|
|
|
KeyUp Key = Key(ui.KeyUp)
|
|
|
|
KeyMax Key = KeyUp
|
2014-12-14 08:53:32 +01:00
|
|
|
)
|