ebiten/mobile/ebitenmobileview/keys_android.go

128 lines
3.0 KiB
Go

// 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.
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
package ebitenmobileview
import (
"github.com/hajimehoshi/ebiten/internal/driver"
)
var androidKeyToDriverKey = map[int]driver.Key{
7: driver.Key0,
8: driver.Key1,
9: driver.Key2,
10: driver.Key3,
11: driver.Key4,
12: driver.Key5,
13: driver.Key6,
14: driver.Key7,
15: driver.Key8,
16: driver.Key9,
29: driver.KeyA,
75: driver.KeyApostrophe,
30: driver.KeyB,
73: driver.KeyBackslash,
67: driver.KeyBackspace,
31: driver.KeyC,
115: driver.KeyCapsLock,
55: driver.KeyComma,
32: driver.KeyD,
112: driver.KeyDelete,
20: driver.KeyDown,
33: driver.KeyE,
123: driver.KeyEnd,
66: driver.KeyEnter,
70: driver.KeyEqual,
111: driver.KeyEscape,
34: driver.KeyF,
131: driver.KeyF1,
140: driver.KeyF10,
141: driver.KeyF11,
142: driver.KeyF12,
132: driver.KeyF2,
133: driver.KeyF3,
134: driver.KeyF4,
135: driver.KeyF5,
136: driver.KeyF6,
137: driver.KeyF7,
138: driver.KeyF8,
139: driver.KeyF9,
35: driver.KeyG,
68: driver.KeyGraveAccent,
36: driver.KeyH,
122: driver.KeyHome,
37: driver.KeyI,
124: driver.KeyInsert,
38: driver.KeyJ,
39: driver.KeyK,
144: driver.KeyKP0,
145: driver.KeyKP1,
146: driver.KeyKP2,
147: driver.KeyKP3,
148: driver.KeyKP4,
149: driver.KeyKP5,
150: driver.KeyKP6,
151: driver.KeyKP7,
152: driver.KeyKP8,
153: driver.KeyKP9,
157: driver.KeyKPAdd,
158: driver.KeyKPDecimal,
154: driver.KeyKPDivide,
160: driver.KeyKPEnter,
161: driver.KeyKPEqual,
155: driver.KeyKPMultiply,
156: driver.KeyKPSubtract,
40: driver.KeyL,
21: driver.KeyLeft,
57: driver.KeyLeftAlt,
71: driver.KeyLeftBracket,
113: driver.KeyLeftControl,
59: driver.KeyLeftShift,
41: driver.KeyM,
82: driver.KeyMenu,
69: driver.KeyMinus,
42: driver.KeyN,
143: driver.KeyNumLock,
43: driver.KeyO,
44: driver.KeyP,
93: driver.KeyPageDown,
92: driver.KeyPageUp,
121: driver.KeyPause,
56: driver.KeyPeriod,
120: driver.KeyPrintScreen,
45: driver.KeyQ,
46: driver.KeyR,
22: driver.KeyRight,
58: driver.KeyRightAlt,
72: driver.KeyRightBracket,
114: driver.KeyRightControl,
60: driver.KeyRightShift,
47: driver.KeyS,
116: driver.KeyScrollLock,
74: driver.KeySemicolon,
76: driver.KeySlash,
62: driver.KeySpace,
48: driver.KeyT,
61: driver.KeyTab,
49: driver.KeyU,
19: driver.KeyUp,
50: driver.KeyV,
51: driver.KeyW,
52: driver.KeyX,
53: driver.KeyY,
54: driver.KeyZ,
}