twitchapon-anim

Basic Twitchapon Receiver/Visuals
git clone git://bsandro.tech/twitchapon-anim
Log | Files | Refs | README | LICENSE

keys.go (5312B)


      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 driver
     18 
     19 import (
     20 	"fmt"
     21 )
     22 
     23 type Key int
     24 
     25 const (
     26 	Key0 Key = iota
     27 	Key1
     28 	Key2
     29 	Key3
     30 	Key4
     31 	Key5
     32 	Key6
     33 	Key7
     34 	Key8
     35 	Key9
     36 	KeyA
     37 	KeyB
     38 	KeyC
     39 	KeyD
     40 	KeyE
     41 	KeyF
     42 	KeyG
     43 	KeyH
     44 	KeyI
     45 	KeyJ
     46 	KeyK
     47 	KeyL
     48 	KeyM
     49 	KeyN
     50 	KeyO
     51 	KeyP
     52 	KeyQ
     53 	KeyR
     54 	KeyS
     55 	KeyT
     56 	KeyU
     57 	KeyV
     58 	KeyW
     59 	KeyX
     60 	KeyY
     61 	KeyZ
     62 	KeyApostrophe
     63 	KeyBackslash
     64 	KeyBackspace
     65 	KeyCapsLock
     66 	KeyComma
     67 	KeyDelete
     68 	KeyDown
     69 	KeyEnd
     70 	KeyEnter
     71 	KeyEqual
     72 	KeyEscape
     73 	KeyF1
     74 	KeyF2
     75 	KeyF3
     76 	KeyF4
     77 	KeyF5
     78 	KeyF6
     79 	KeyF7
     80 	KeyF8
     81 	KeyF9
     82 	KeyF10
     83 	KeyF11
     84 	KeyF12
     85 	KeyGraveAccent
     86 	KeyHome
     87 	KeyInsert
     88 	KeyKP0
     89 	KeyKP1
     90 	KeyKP2
     91 	KeyKP3
     92 	KeyKP4
     93 	KeyKP5
     94 	KeyKP6
     95 	KeyKP7
     96 	KeyKP8
     97 	KeyKP9
     98 	KeyKPAdd
     99 	KeyKPDecimal
    100 	KeyKPDivide
    101 	KeyKPEnter
    102 	KeyKPEqual
    103 	KeyKPMultiply
    104 	KeyKPSubtract
    105 	KeyLeft
    106 	KeyLeftAlt
    107 	KeyLeftBracket
    108 	KeyLeftControl
    109 	KeyLeftShift
    110 	KeyMenu
    111 	KeyMinus
    112 	KeyNumLock
    113 	KeyPageDown
    114 	KeyPageUp
    115 	KeyPause
    116 	KeyPeriod
    117 	KeyPrintScreen
    118 	KeyRight
    119 	KeyRightAlt
    120 	KeyRightBracket
    121 	KeyRightControl
    122 	KeyRightShift
    123 	KeyScrollLock
    124 	KeySemicolon
    125 	KeySlash
    126 	KeySpace
    127 	KeyTab
    128 	KeyUp
    129 	KeyReserved0
    130 	KeyReserved1
    131 	KeyReserved2
    132 )
    133 
    134 func (k Key) String() string {
    135 	switch k {
    136 	case Key0:
    137 		return "Key0"
    138 	case Key1:
    139 		return "Key1"
    140 	case Key2:
    141 		return "Key2"
    142 	case Key3:
    143 		return "Key3"
    144 	case Key4:
    145 		return "Key4"
    146 	case Key5:
    147 		return "Key5"
    148 	case Key6:
    149 		return "Key6"
    150 	case Key7:
    151 		return "Key7"
    152 	case Key8:
    153 		return "Key8"
    154 	case Key9:
    155 		return "Key9"
    156 	case KeyA:
    157 		return "KeyA"
    158 	case KeyB:
    159 		return "KeyB"
    160 	case KeyC:
    161 		return "KeyC"
    162 	case KeyD:
    163 		return "KeyD"
    164 	case KeyE:
    165 		return "KeyE"
    166 	case KeyF:
    167 		return "KeyF"
    168 	case KeyG:
    169 		return "KeyG"
    170 	case KeyH:
    171 		return "KeyH"
    172 	case KeyI:
    173 		return "KeyI"
    174 	case KeyJ:
    175 		return "KeyJ"
    176 	case KeyK:
    177 		return "KeyK"
    178 	case KeyL:
    179 		return "KeyL"
    180 	case KeyM:
    181 		return "KeyM"
    182 	case KeyN:
    183 		return "KeyN"
    184 	case KeyO:
    185 		return "KeyO"
    186 	case KeyP:
    187 		return "KeyP"
    188 	case KeyQ:
    189 		return "KeyQ"
    190 	case KeyR:
    191 		return "KeyR"
    192 	case KeyS:
    193 		return "KeyS"
    194 	case KeyT:
    195 		return "KeyT"
    196 	case KeyU:
    197 		return "KeyU"
    198 	case KeyV:
    199 		return "KeyV"
    200 	case KeyW:
    201 		return "KeyW"
    202 	case KeyX:
    203 		return "KeyX"
    204 	case KeyY:
    205 		return "KeyY"
    206 	case KeyZ:
    207 		return "KeyZ"
    208 	case KeyApostrophe:
    209 		return "KeyApostrophe"
    210 	case KeyBackslash:
    211 		return "KeyBackslash"
    212 	case KeyBackspace:
    213 		return "KeyBackspace"
    214 	case KeyCapsLock:
    215 		return "KeyCapsLock"
    216 	case KeyComma:
    217 		return "KeyComma"
    218 	case KeyDelete:
    219 		return "KeyDelete"
    220 	case KeyDown:
    221 		return "KeyDown"
    222 	case KeyEnd:
    223 		return "KeyEnd"
    224 	case KeyEnter:
    225 		return "KeyEnter"
    226 	case KeyEqual:
    227 		return "KeyEqual"
    228 	case KeyEscape:
    229 		return "KeyEscape"
    230 	case KeyF1:
    231 		return "KeyF1"
    232 	case KeyF2:
    233 		return "KeyF2"
    234 	case KeyF3:
    235 		return "KeyF3"
    236 	case KeyF4:
    237 		return "KeyF4"
    238 	case KeyF5:
    239 		return "KeyF5"
    240 	case KeyF6:
    241 		return "KeyF6"
    242 	case KeyF7:
    243 		return "KeyF7"
    244 	case KeyF8:
    245 		return "KeyF8"
    246 	case KeyF9:
    247 		return "KeyF9"
    248 	case KeyF10:
    249 		return "KeyF10"
    250 	case KeyF11:
    251 		return "KeyF11"
    252 	case KeyF12:
    253 		return "KeyF12"
    254 	case KeyGraveAccent:
    255 		return "KeyGraveAccent"
    256 	case KeyHome:
    257 		return "KeyHome"
    258 	case KeyInsert:
    259 		return "KeyInsert"
    260 	case KeyKP0:
    261 		return "KeyKP0"
    262 	case KeyKP1:
    263 		return "KeyKP1"
    264 	case KeyKP2:
    265 		return "KeyKP2"
    266 	case KeyKP3:
    267 		return "KeyKP3"
    268 	case KeyKP4:
    269 		return "KeyKP4"
    270 	case KeyKP5:
    271 		return "KeyKP5"
    272 	case KeyKP6:
    273 		return "KeyKP6"
    274 	case KeyKP7:
    275 		return "KeyKP7"
    276 	case KeyKP8:
    277 		return "KeyKP8"
    278 	case KeyKP9:
    279 		return "KeyKP9"
    280 	case KeyKPAdd:
    281 		return "KeyKPAdd"
    282 	case KeyKPDecimal:
    283 		return "KeyKPDecimal"
    284 	case KeyKPDivide:
    285 		return "KeyKPDivide"
    286 	case KeyKPEnter:
    287 		return "KeyKPEnter"
    288 	case KeyKPEqual:
    289 		return "KeyKPEqual"
    290 	case KeyKPMultiply:
    291 		return "KeyKPMultiply"
    292 	case KeyKPSubtract:
    293 		return "KeyKPSubtract"
    294 	case KeyLeft:
    295 		return "KeyLeft"
    296 	case KeyLeftAlt:
    297 		return "KeyLeftAlt"
    298 	case KeyLeftBracket:
    299 		return "KeyLeftBracket"
    300 	case KeyLeftControl:
    301 		return "KeyLeftControl"
    302 	case KeyLeftShift:
    303 		return "KeyLeftShift"
    304 	case KeyMenu:
    305 		return "KeyMenu"
    306 	case KeyMinus:
    307 		return "KeyMinus"
    308 	case KeyNumLock:
    309 		return "KeyNumLock"
    310 	case KeyPageDown:
    311 		return "KeyPageDown"
    312 	case KeyPageUp:
    313 		return "KeyPageUp"
    314 	case KeyPause:
    315 		return "KeyPause"
    316 	case KeyPeriod:
    317 		return "KeyPeriod"
    318 	case KeyPrintScreen:
    319 		return "KeyPrintScreen"
    320 	case KeyRight:
    321 		return "KeyRight"
    322 	case KeyRightAlt:
    323 		return "KeyRightAlt"
    324 	case KeyRightBracket:
    325 		return "KeyRightBracket"
    326 	case KeyRightControl:
    327 		return "KeyRightControl"
    328 	case KeyRightShift:
    329 		return "KeyRightShift"
    330 	case KeyScrollLock:
    331 		return "KeyScrollLock"
    332 	case KeySemicolon:
    333 		return "KeySemicolon"
    334 	case KeySlash:
    335 		return "KeySlash"
    336 	case KeySpace:
    337 		return "KeySpace"
    338 	case KeyTab:
    339 		return "KeyTab"
    340 	case KeyUp:
    341 		return "KeyUp"
    342 	}
    343 	panic(fmt.Sprintf("driver: invalid key: %d", k))
    344 }