2016-08-26 17:50:26 +02:00
|
|
|
// Copyright 2013 The Ebiten Authors
|
2015-01-06 16:05:46 +01:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2018-03-07 18:47:59 +01:00
|
|
|
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
2015-01-07 15:21:52 +01:00
|
|
|
|
2017-05-11 12:09:13 +02:00
|
|
|
// +build darwin freebsd linux windows
|
2015-01-06 16:05:46 +01:00
|
|
|
// +build !js
|
2016-05-18 20:17:50 +02:00
|
|
|
// +build !android
|
2016-06-15 17:49:22 +02:00
|
|
|
// +build !ios
|
2015-01-06 16:05:46 +01:00
|
|
|
|
2018-04-01 16:20:45 +02:00
|
|
|
package input
|
2015-01-06 16:05:46 +01:00
|
|
|
|
|
|
|
import (
|
2016-09-03 09:25:43 +02:00
|
|
|
glfw "github.com/go-gl/glfw/v3.2/glfw"
|
2015-01-06 16:05:46 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
var glfwKeyCodeToKey = map[glfw.Key]Key{
|
2017-04-13 20:09:00 +02:00
|
|
|
glfw.Key0: Key0,
|
|
|
|
glfw.Key1: Key1,
|
|
|
|
glfw.Key2: Key2,
|
|
|
|
glfw.Key3: Key3,
|
|
|
|
glfw.Key4: Key4,
|
|
|
|
glfw.Key5: Key5,
|
|
|
|
glfw.Key6: Key6,
|
|
|
|
glfw.Key7: Key7,
|
|
|
|
glfw.Key8: Key8,
|
|
|
|
glfw.Key9: Key9,
|
|
|
|
glfw.KeyA: KeyA,
|
|
|
|
glfw.KeyB: KeyB,
|
|
|
|
glfw.KeyC: KeyC,
|
|
|
|
glfw.KeyD: KeyD,
|
|
|
|
glfw.KeyE: KeyE,
|
|
|
|
glfw.KeyF: KeyF,
|
|
|
|
glfw.KeyG: KeyG,
|
|
|
|
glfw.KeyH: KeyH,
|
|
|
|
glfw.KeyI: KeyI,
|
|
|
|
glfw.KeyJ: KeyJ,
|
|
|
|
glfw.KeyK: KeyK,
|
|
|
|
glfw.KeyL: KeyL,
|
|
|
|
glfw.KeyM: KeyM,
|
|
|
|
glfw.KeyN: KeyN,
|
|
|
|
glfw.KeyO: KeyO,
|
|
|
|
glfw.KeyP: KeyP,
|
|
|
|
glfw.KeyQ: KeyQ,
|
|
|
|
glfw.KeyR: KeyR,
|
|
|
|
glfw.KeyS: KeyS,
|
|
|
|
glfw.KeyT: KeyT,
|
|
|
|
glfw.KeyU: KeyU,
|
|
|
|
glfw.KeyV: KeyV,
|
|
|
|
glfw.KeyW: KeyW,
|
|
|
|
glfw.KeyX: KeyX,
|
|
|
|
glfw.KeyY: KeyY,
|
|
|
|
glfw.KeyZ: KeyZ,
|
|
|
|
glfw.KeyApostrophe: KeyApostrophe,
|
|
|
|
glfw.KeyBackslash: KeyBackslash,
|
|
|
|
glfw.KeyBackspace: KeyBackspace,
|
|
|
|
glfw.KeyCapsLock: KeyCapsLock,
|
|
|
|
glfw.KeyComma: KeyComma,
|
|
|
|
glfw.KeyDelete: KeyDelete,
|
|
|
|
glfw.KeyDown: KeyDown,
|
|
|
|
glfw.KeyEnd: KeyEnd,
|
|
|
|
glfw.KeyEnter: KeyEnter,
|
|
|
|
glfw.KeyEqual: KeyEqual,
|
|
|
|
glfw.KeyEscape: KeyEscape,
|
|
|
|
glfw.KeyF1: KeyF1,
|
|
|
|
glfw.KeyF2: KeyF2,
|
|
|
|
glfw.KeyF3: KeyF3,
|
|
|
|
glfw.KeyF4: KeyF4,
|
|
|
|
glfw.KeyF5: KeyF5,
|
|
|
|
glfw.KeyF6: KeyF6,
|
|
|
|
glfw.KeyF7: KeyF7,
|
|
|
|
glfw.KeyF8: KeyF8,
|
|
|
|
glfw.KeyF9: KeyF9,
|
|
|
|
glfw.KeyF10: KeyF10,
|
|
|
|
glfw.KeyF11: KeyF11,
|
|
|
|
glfw.KeyF12: KeyF12,
|
|
|
|
glfw.KeyGraveAccent: KeyGraveAccent,
|
|
|
|
glfw.KeyHome: KeyHome,
|
|
|
|
glfw.KeyInsert: KeyInsert,
|
2018-04-12 16:56:50 +02:00
|
|
|
glfw.KeyKP0: KeyKP0,
|
|
|
|
glfw.KeyKP1: KeyKP1,
|
|
|
|
glfw.KeyKP2: KeyKP2,
|
|
|
|
glfw.KeyKP3: KeyKP3,
|
|
|
|
glfw.KeyKP4: KeyKP4,
|
|
|
|
glfw.KeyKP5: KeyKP5,
|
|
|
|
glfw.KeyKP6: KeyKP6,
|
|
|
|
glfw.KeyKP7: KeyKP7,
|
|
|
|
glfw.KeyKP8: KeyKP8,
|
|
|
|
glfw.KeyKP9: KeyKP9,
|
|
|
|
glfw.KeyKPAdd: KeyKPAdd,
|
|
|
|
glfw.KeyKPDecimal: KeyKPDecimal,
|
|
|
|
glfw.KeyKPDivide: KeyKPDivide,
|
|
|
|
glfw.KeyKPEnter: KeyKPEnter,
|
|
|
|
glfw.KeyKPEqual: KeyKPEqual,
|
|
|
|
glfw.KeyKPMultiply: KeyKPMultiply,
|
|
|
|
glfw.KeyKPSubtract: KeyKPSubtract,
|
2017-04-13 20:09:00 +02:00
|
|
|
glfw.KeyLeft: KeyLeft,
|
|
|
|
glfw.KeyLeftBracket: KeyLeftBracket,
|
|
|
|
glfw.KeyMinus: KeyMinus,
|
|
|
|
glfw.KeyPageDown: KeyPageDown,
|
|
|
|
glfw.KeyPageUp: KeyPageUp,
|
|
|
|
glfw.KeyPeriod: KeyPeriod,
|
|
|
|
glfw.KeyRight: KeyRight,
|
|
|
|
glfw.KeyRightBracket: KeyRightBracket,
|
|
|
|
glfw.KeySemicolon: KeySemicolon,
|
|
|
|
glfw.KeySlash: KeySlash,
|
|
|
|
glfw.KeySpace: KeySpace,
|
|
|
|
glfw.KeyTab: KeyTab,
|
|
|
|
glfw.KeyUp: KeyUp,
|
2015-01-07 15:18:40 +01:00
|
|
|
|
|
|
|
glfw.KeyLeftAlt: KeyAlt,
|
|
|
|
glfw.KeyRightAlt: KeyAlt,
|
|
|
|
glfw.KeyLeftControl: KeyControl,
|
|
|
|
glfw.KeyRightControl: KeyControl,
|
|
|
|
glfw.KeyLeftShift: KeyShift,
|
|
|
|
glfw.KeyRightShift: KeyShift,
|
2015-01-06 16:05:46 +01:00
|
|
|
}
|