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