keys.go (5321B)
1 // Copyright 2013 The Ebiten Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by genkeys.go using 'go generate'. DO NOT EDIT. 16 17 package mobile 18 19 import ( 20 "golang.org/x/mobile/event/key" 21 22 "github.com/hajimehoshi/ebiten/v2/internal/driver" 23 ) 24 25 var gbuildKeyToDriverKey = map[key.Code]driver.Key{ 26 key.CodeA: driver.KeyA, 27 key.CodeB: driver.KeyB, 28 key.CodeC: driver.KeyC, 29 key.CodeD: driver.KeyD, 30 key.CodeE: driver.KeyE, 31 key.CodeF: driver.KeyF, 32 key.CodeG: driver.KeyG, 33 key.CodeH: driver.KeyH, 34 key.CodeI: driver.KeyI, 35 key.CodeJ: driver.KeyJ, 36 key.CodeK: driver.KeyK, 37 key.CodeL: driver.KeyL, 38 key.CodeM: driver.KeyM, 39 key.CodeN: driver.KeyN, 40 key.CodeO: driver.KeyO, 41 key.CodeP: driver.KeyP, 42 key.CodeQ: driver.KeyQ, 43 key.CodeR: driver.KeyR, 44 key.CodeS: driver.KeyS, 45 key.CodeT: driver.KeyT, 46 key.CodeU: driver.KeyU, 47 key.CodeV: driver.KeyV, 48 key.CodeW: driver.KeyW, 49 key.CodeX: driver.KeyX, 50 key.CodeY: driver.KeyY, 51 key.CodeZ: driver.KeyZ, 52 key.Code1: driver.Key1, 53 key.Code2: driver.Key2, 54 key.Code3: driver.Key3, 55 key.Code4: driver.Key4, 56 key.Code5: driver.Key5, 57 key.Code6: driver.Key6, 58 key.Code7: driver.Key7, 59 key.Code8: driver.Key8, 60 key.Code9: driver.Key9, 61 key.Code0: driver.Key0, 62 key.CodeReturnEnter: driver.KeyEnter, 63 key.CodeEscape: driver.KeyEscape, 64 key.CodeDeleteBackspace: driver.KeyBackspace, 65 key.CodeTab: driver.KeyTab, 66 key.CodeSpacebar: driver.KeySpace, 67 key.CodeHyphenMinus: driver.KeyMinus, 68 key.CodeEqualSign: driver.KeyEqual, 69 key.CodeLeftSquareBracket: driver.KeyLeftBracket, 70 key.CodeRightSquareBracket: driver.KeyRightBracket, 71 key.CodeBackslash: driver.KeyBackslash, 72 key.CodeSemicolon: driver.KeySemicolon, 73 key.CodeApostrophe: driver.KeyApostrophe, 74 key.CodeGraveAccent: driver.KeyGraveAccent, 75 key.CodeComma: driver.KeyComma, 76 key.CodeFullStop: driver.KeyPeriod, 77 key.CodeSlash: driver.KeySlash, 78 key.CodeCapsLock: driver.KeyCapsLock, 79 key.CodeF1: driver.KeyF1, 80 key.CodeF2: driver.KeyF2, 81 key.CodeF3: driver.KeyF3, 82 key.CodeF4: driver.KeyF4, 83 key.CodeF5: driver.KeyF5, 84 key.CodeF6: driver.KeyF6, 85 key.CodeF7: driver.KeyF7, 86 key.CodeF8: driver.KeyF8, 87 key.CodeF9: driver.KeyF9, 88 key.CodeF10: driver.KeyF10, 89 key.CodeF11: driver.KeyF11, 90 key.CodeF12: driver.KeyF12, 91 key.CodePause: driver.KeyPause, 92 key.CodeInsert: driver.KeyInsert, 93 key.CodeHome: driver.KeyHome, 94 key.CodePageUp: driver.KeyPageUp, 95 key.CodeDeleteForward: driver.KeyDelete, 96 key.CodeEnd: driver.KeyEnd, 97 key.CodePageDown: driver.KeyPageDown, 98 key.CodeRightArrow: driver.KeyRight, 99 key.CodeLeftArrow: driver.KeyLeft, 100 key.CodeDownArrow: driver.KeyDown, 101 key.CodeUpArrow: driver.KeyUp, 102 key.CodeKeypadNumLock: driver.KeyNumLock, 103 key.CodeKeypadSlash: driver.KeyKPDivide, 104 key.CodeKeypadAsterisk: driver.KeyKPMultiply, 105 key.CodeKeypadHyphenMinus: driver.KeyKPSubtract, 106 key.CodeKeypadPlusSign: driver.KeyKPAdd, 107 key.CodeKeypadEnter: driver.KeyKPEnter, 108 key.CodeKeypad1: driver.KeyKP1, 109 key.CodeKeypad2: driver.KeyKP2, 110 key.CodeKeypad3: driver.KeyKP3, 111 key.CodeKeypad4: driver.KeyKP4, 112 key.CodeKeypad5: driver.KeyKP5, 113 key.CodeKeypad6: driver.KeyKP6, 114 key.CodeKeypad7: driver.KeyKP7, 115 key.CodeKeypad8: driver.KeyKP8, 116 key.CodeKeypad9: driver.KeyKP9, 117 key.CodeKeypad0: driver.KeyKP0, 118 key.CodeKeypadFullStop: driver.KeyKPDecimal, 119 key.CodeKeypadEqualSign: driver.KeyKPEqual, 120 key.CodeLeftControl: driver.KeyLeftControl, 121 key.CodeLeftShift: driver.KeyLeftShift, 122 key.CodeLeftAlt: driver.KeyLeftAlt, 123 key.CodeRightControl: driver.KeyRightControl, 124 key.CodeRightShift: driver.KeyRightShift, 125 key.CodeRightAlt: driver.KeyRightAlt, 126 }