keys.go (5551B)
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.KeyDigit1, 53 key.Code2: driver.KeyDigit2, 54 key.Code3: driver.KeyDigit3, 55 key.Code4: driver.KeyDigit4, 56 key.Code5: driver.KeyDigit5, 57 key.Code6: driver.KeyDigit6, 58 key.Code7: driver.KeyDigit7, 59 key.Code8: driver.KeyDigit8, 60 key.Code9: driver.KeyDigit9, 61 key.Code0: driver.KeyDigit0, 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.KeyBracketLeft, 70 key.CodeRightSquareBracket: driver.KeyBracketRight, 71 key.CodeBackslash: driver.KeyBackslash, 72 key.CodeSemicolon: driver.KeySemicolon, 73 key.CodeApostrophe: driver.KeyQuote, 74 key.CodeGraveAccent: driver.KeyBackquote, 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.KeyArrowRight, 99 key.CodeLeftArrow: driver.KeyArrowLeft, 100 key.CodeDownArrow: driver.KeyArrowDown, 101 key.CodeUpArrow: driver.KeyArrowUp, 102 key.CodeKeypadNumLock: driver.KeyNumLock, 103 key.CodeKeypadSlash: driver.KeyNumpadDivide, 104 key.CodeKeypadAsterisk: driver.KeyNumpadMultiply, 105 key.CodeKeypadHyphenMinus: driver.KeyNumpadSubtract, 106 key.CodeKeypadPlusSign: driver.KeyNumpadAdd, 107 key.CodeKeypadEnter: driver.KeyNumpadEnter, 108 key.CodeKeypad1: driver.KeyNumpad1, 109 key.CodeKeypad2: driver.KeyNumpad2, 110 key.CodeKeypad3: driver.KeyNumpad3, 111 key.CodeKeypad4: driver.KeyNumpad4, 112 key.CodeKeypad5: driver.KeyNumpad5, 113 key.CodeKeypad6: driver.KeyNumpad6, 114 key.CodeKeypad7: driver.KeyNumpad7, 115 key.CodeKeypad8: driver.KeyNumpad8, 116 key.CodeKeypad9: driver.KeyNumpad9, 117 key.CodeKeypad0: driver.KeyNumpad0, 118 key.CodeKeypadFullStop: driver.KeyNumpadDecimal, 119 key.CodeKeypadEqualSign: driver.KeyNumpadEqual, 120 key.CodeLeftControl: driver.KeyControlLeft, 121 key.CodeLeftShift: driver.KeyShiftLeft, 122 key.CodeLeftAlt: driver.KeyAltLeft, 123 key.CodeLeftGUI: driver.KeyMetaLeft, 124 key.CodeRightControl: driver.KeyControlRight, 125 key.CodeRightShift: driver.KeyShiftRight, 126 key.CodeRightAlt: driver.KeyAltRight, 127 key.CodeRightGUI: driver.KeyMetaRight, 128 }