-
-
Notifications
You must be signed in to change notification settings - Fork 662
/
keys.go
109 lines (104 loc) · 3.86 KB
/
keys.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Copyright 2013 The Ebiten Authors
//
// 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.
// DO NOT EDIT: This file is auto-generated by genkeys.go.
package ebiten
import (
"github.com/hajimehoshi/ebiten/internal/ui"
)
// A Key represents a keyboard key.
// These keys represent pysical keys of US keyboard.
// For example, KeyQ represents Q key on US keyboards and ' (quote) key on Dvorak keyboards.
type Key int
// Keys
const (
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
)