keys.go (9605B)
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 //go:build (darwin || freebsd || linux || windows) && !android && !ios 18 // +build darwin freebsd linux windows 19 // +build !android 20 // +build !ios 21 22 package glfw 23 24 import ( 25 "github.com/hajimehoshi/ebiten/v2/internal/driver" 26 "github.com/hajimehoshi/ebiten/v2/internal/glfw" 27 ) 28 29 var glfwKeyToDriverKey = map[glfw.Key]driver.Key{ 30 glfw.KeyA: driver.KeyA, 31 glfw.KeyLeftAlt: driver.KeyAltLeft, 32 glfw.KeyRightAlt: driver.KeyAltRight, 33 glfw.KeyDown: driver.KeyArrowDown, 34 glfw.KeyLeft: driver.KeyArrowLeft, 35 glfw.KeyRight: driver.KeyArrowRight, 36 glfw.KeyUp: driver.KeyArrowUp, 37 glfw.KeyB: driver.KeyB, 38 glfw.KeyGraveAccent: driver.KeyBackquote, 39 glfw.KeyBackslash: driver.KeyBackslash, 40 glfw.KeyBackspace: driver.KeyBackspace, 41 glfw.KeyLeftBracket: driver.KeyBracketLeft, 42 glfw.KeyRightBracket: driver.KeyBracketRight, 43 glfw.KeyC: driver.KeyC, 44 glfw.KeyCapsLock: driver.KeyCapsLock, 45 glfw.KeyComma: driver.KeyComma, 46 glfw.KeyMenu: driver.KeyContextMenu, 47 glfw.KeyLeftControl: driver.KeyControlLeft, 48 glfw.KeyRightControl: driver.KeyControlRight, 49 glfw.KeyD: driver.KeyD, 50 glfw.KeyDelete: driver.KeyDelete, 51 glfw.Key0: driver.KeyDigit0, 52 glfw.Key1: driver.KeyDigit1, 53 glfw.Key2: driver.KeyDigit2, 54 glfw.Key3: driver.KeyDigit3, 55 glfw.Key4: driver.KeyDigit4, 56 glfw.Key5: driver.KeyDigit5, 57 glfw.Key6: driver.KeyDigit6, 58 glfw.Key7: driver.KeyDigit7, 59 glfw.Key8: driver.KeyDigit8, 60 glfw.Key9: driver.KeyDigit9, 61 glfw.KeyE: driver.KeyE, 62 glfw.KeyEnd: driver.KeyEnd, 63 glfw.KeyEnter: driver.KeyEnter, 64 glfw.KeyEqual: driver.KeyEqual, 65 glfw.KeyEscape: driver.KeyEscape, 66 glfw.KeyF: driver.KeyF, 67 glfw.KeyF1: driver.KeyF1, 68 glfw.KeyF10: driver.KeyF10, 69 glfw.KeyF11: driver.KeyF11, 70 glfw.KeyF12: driver.KeyF12, 71 glfw.KeyF2: driver.KeyF2, 72 glfw.KeyF3: driver.KeyF3, 73 glfw.KeyF4: driver.KeyF4, 74 glfw.KeyF5: driver.KeyF5, 75 glfw.KeyF6: driver.KeyF6, 76 glfw.KeyF7: driver.KeyF7, 77 glfw.KeyF8: driver.KeyF8, 78 glfw.KeyF9: driver.KeyF9, 79 glfw.KeyG: driver.KeyG, 80 glfw.KeyH: driver.KeyH, 81 glfw.KeyHome: driver.KeyHome, 82 glfw.KeyI: driver.KeyI, 83 glfw.KeyInsert: driver.KeyInsert, 84 glfw.KeyJ: driver.KeyJ, 85 glfw.KeyK: driver.KeyK, 86 glfw.KeyL: driver.KeyL, 87 glfw.KeyM: driver.KeyM, 88 glfw.KeyLeftSuper: driver.KeyMetaLeft, 89 glfw.KeyRightSuper: driver.KeyMetaRight, 90 glfw.KeyMinus: driver.KeyMinus, 91 glfw.KeyN: driver.KeyN, 92 glfw.KeyNumLock: driver.KeyNumLock, 93 glfw.KeyKP0: driver.KeyNumpad0, 94 glfw.KeyKP1: driver.KeyNumpad1, 95 glfw.KeyKP2: driver.KeyNumpad2, 96 glfw.KeyKP3: driver.KeyNumpad3, 97 glfw.KeyKP4: driver.KeyNumpad4, 98 glfw.KeyKP5: driver.KeyNumpad5, 99 glfw.KeyKP6: driver.KeyNumpad6, 100 glfw.KeyKP7: driver.KeyNumpad7, 101 glfw.KeyKP8: driver.KeyNumpad8, 102 glfw.KeyKP9: driver.KeyNumpad9, 103 glfw.KeyKPAdd: driver.KeyNumpadAdd, 104 glfw.KeyKPDecimal: driver.KeyNumpadDecimal, 105 glfw.KeyKPDivide: driver.KeyNumpadDivide, 106 glfw.KeyKPEnter: driver.KeyNumpadEnter, 107 glfw.KeyKPEqual: driver.KeyNumpadEqual, 108 glfw.KeyKPMultiply: driver.KeyNumpadMultiply, 109 glfw.KeyKPSubtract: driver.KeyNumpadSubtract, 110 glfw.KeyO: driver.KeyO, 111 glfw.KeyP: driver.KeyP, 112 glfw.KeyPageDown: driver.KeyPageDown, 113 glfw.KeyPageUp: driver.KeyPageUp, 114 glfw.KeyPause: driver.KeyPause, 115 glfw.KeyPeriod: driver.KeyPeriod, 116 glfw.KeyPrintScreen: driver.KeyPrintScreen, 117 glfw.KeyQ: driver.KeyQ, 118 glfw.KeyApostrophe: driver.KeyQuote, 119 glfw.KeyR: driver.KeyR, 120 glfw.KeyS: driver.KeyS, 121 glfw.KeyScrollLock: driver.KeyScrollLock, 122 glfw.KeySemicolon: driver.KeySemicolon, 123 glfw.KeyLeftShift: driver.KeyShiftLeft, 124 glfw.KeyRightShift: driver.KeyShiftRight, 125 glfw.KeySlash: driver.KeySlash, 126 glfw.KeySpace: driver.KeySpace, 127 glfw.KeyT: driver.KeyT, 128 glfw.KeyTab: driver.KeyTab, 129 glfw.KeyU: driver.KeyU, 130 glfw.KeyV: driver.KeyV, 131 glfw.KeyW: driver.KeyW, 132 glfw.KeyX: driver.KeyX, 133 glfw.KeyY: driver.KeyY, 134 glfw.KeyZ: driver.KeyZ, 135 } 136 137 var driverKeyToGLFWKey = map[driver.Key]glfw.Key{ 138 driver.KeyA: glfw.KeyA, 139 driver.KeyAltLeft: glfw.KeyLeftAlt, 140 driver.KeyAltRight: glfw.KeyRightAlt, 141 driver.KeyArrowDown: glfw.KeyDown, 142 driver.KeyArrowLeft: glfw.KeyLeft, 143 driver.KeyArrowRight: glfw.KeyRight, 144 driver.KeyArrowUp: glfw.KeyUp, 145 driver.KeyB: glfw.KeyB, 146 driver.KeyBackquote: glfw.KeyGraveAccent, 147 driver.KeyBackslash: glfw.KeyBackslash, 148 driver.KeyBackspace: glfw.KeyBackspace, 149 driver.KeyBracketLeft: glfw.KeyLeftBracket, 150 driver.KeyBracketRight: glfw.KeyRightBracket, 151 driver.KeyC: glfw.KeyC, 152 driver.KeyCapsLock: glfw.KeyCapsLock, 153 driver.KeyComma: glfw.KeyComma, 154 driver.KeyContextMenu: glfw.KeyMenu, 155 driver.KeyControlLeft: glfw.KeyLeftControl, 156 driver.KeyControlRight: glfw.KeyRightControl, 157 driver.KeyD: glfw.KeyD, 158 driver.KeyDelete: glfw.KeyDelete, 159 driver.KeyDigit0: glfw.Key0, 160 driver.KeyDigit1: glfw.Key1, 161 driver.KeyDigit2: glfw.Key2, 162 driver.KeyDigit3: glfw.Key3, 163 driver.KeyDigit4: glfw.Key4, 164 driver.KeyDigit5: glfw.Key5, 165 driver.KeyDigit6: glfw.Key6, 166 driver.KeyDigit7: glfw.Key7, 167 driver.KeyDigit8: glfw.Key8, 168 driver.KeyDigit9: glfw.Key9, 169 driver.KeyE: glfw.KeyE, 170 driver.KeyEnd: glfw.KeyEnd, 171 driver.KeyEnter: glfw.KeyEnter, 172 driver.KeyEqual: glfw.KeyEqual, 173 driver.KeyEscape: glfw.KeyEscape, 174 driver.KeyF: glfw.KeyF, 175 driver.KeyF1: glfw.KeyF1, 176 driver.KeyF10: glfw.KeyF10, 177 driver.KeyF11: glfw.KeyF11, 178 driver.KeyF12: glfw.KeyF12, 179 driver.KeyF2: glfw.KeyF2, 180 driver.KeyF3: glfw.KeyF3, 181 driver.KeyF4: glfw.KeyF4, 182 driver.KeyF5: glfw.KeyF5, 183 driver.KeyF6: glfw.KeyF6, 184 driver.KeyF7: glfw.KeyF7, 185 driver.KeyF8: glfw.KeyF8, 186 driver.KeyF9: glfw.KeyF9, 187 driver.KeyG: glfw.KeyG, 188 driver.KeyH: glfw.KeyH, 189 driver.KeyHome: glfw.KeyHome, 190 driver.KeyI: glfw.KeyI, 191 driver.KeyInsert: glfw.KeyInsert, 192 driver.KeyJ: glfw.KeyJ, 193 driver.KeyK: glfw.KeyK, 194 driver.KeyL: glfw.KeyL, 195 driver.KeyM: glfw.KeyM, 196 driver.KeyMetaLeft: glfw.KeyLeftSuper, 197 driver.KeyMetaRight: glfw.KeyRightSuper, 198 driver.KeyMinus: glfw.KeyMinus, 199 driver.KeyN: glfw.KeyN, 200 driver.KeyNumLock: glfw.KeyNumLock, 201 driver.KeyNumpad0: glfw.KeyKP0, 202 driver.KeyNumpad1: glfw.KeyKP1, 203 driver.KeyNumpad2: glfw.KeyKP2, 204 driver.KeyNumpad3: glfw.KeyKP3, 205 driver.KeyNumpad4: glfw.KeyKP4, 206 driver.KeyNumpad5: glfw.KeyKP5, 207 driver.KeyNumpad6: glfw.KeyKP6, 208 driver.KeyNumpad7: glfw.KeyKP7, 209 driver.KeyNumpad8: glfw.KeyKP8, 210 driver.KeyNumpad9: glfw.KeyKP9, 211 driver.KeyNumpadAdd: glfw.KeyKPAdd, 212 driver.KeyNumpadDecimal: glfw.KeyKPDecimal, 213 driver.KeyNumpadDivide: glfw.KeyKPDivide, 214 driver.KeyNumpadEnter: glfw.KeyKPEnter, 215 driver.KeyNumpadEqual: glfw.KeyKPEqual, 216 driver.KeyNumpadMultiply: glfw.KeyKPMultiply, 217 driver.KeyNumpadSubtract: glfw.KeyKPSubtract, 218 driver.KeyO: glfw.KeyO, 219 driver.KeyP: glfw.KeyP, 220 driver.KeyPageDown: glfw.KeyPageDown, 221 driver.KeyPageUp: glfw.KeyPageUp, 222 driver.KeyPause: glfw.KeyPause, 223 driver.KeyPeriod: glfw.KeyPeriod, 224 driver.KeyPrintScreen: glfw.KeyPrintScreen, 225 driver.KeyQ: glfw.KeyQ, 226 driver.KeyQuote: glfw.KeyApostrophe, 227 driver.KeyR: glfw.KeyR, 228 driver.KeyS: glfw.KeyS, 229 driver.KeyScrollLock: glfw.KeyScrollLock, 230 driver.KeySemicolon: glfw.KeySemicolon, 231 driver.KeyShiftLeft: glfw.KeyLeftShift, 232 driver.KeyShiftRight: glfw.KeyRightShift, 233 driver.KeySlash: glfw.KeySlash, 234 driver.KeySpace: glfw.KeySpace, 235 driver.KeyT: glfw.KeyT, 236 driver.KeyTab: glfw.KeyTab, 237 driver.KeyU: glfw.KeyU, 238 driver.KeyV: glfw.KeyV, 239 driver.KeyW: glfw.KeyW, 240 driver.KeyX: glfw.KeyX, 241 driver.KeyY: glfw.KeyY, 242 driver.KeyZ: glfw.KeyZ, 243 }