2022-05-25 15:48:19 +02:00
|
|
|
// Copyright 2013 The Ebitengine 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-04-20 09:54:33 +02:00
|
|
|
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
2015-01-07 15:21:52 +01:00
|
|
|
|
2022-02-06 08:08:22 +01:00
|
|
|
package ui
|
2015-01-06 16:05:46 +01:00
|
|
|
|
2019-03-30 15:53:27 +01:00
|
|
|
import (
|
2020-12-16 04:51:52 +01:00
|
|
|
"syscall/js"
|
2019-03-30 15:53:27 +01:00
|
|
|
)
|
|
|
|
|
2022-02-06 10:13:10 +01:00
|
|
|
var uiKeyToJSKey = map[Key]js.Value{
|
|
|
|
KeyA: js.ValueOf("KeyA"),
|
|
|
|
KeyAltLeft: js.ValueOf("AltLeft"),
|
|
|
|
KeyAltRight: js.ValueOf("AltRight"),
|
|
|
|
KeyArrowDown: js.ValueOf("ArrowDown"),
|
|
|
|
KeyArrowLeft: js.ValueOf("ArrowLeft"),
|
|
|
|
KeyArrowRight: js.ValueOf("ArrowRight"),
|
|
|
|
KeyArrowUp: js.ValueOf("ArrowUp"),
|
|
|
|
KeyB: js.ValueOf("KeyB"),
|
|
|
|
KeyBackquote: js.ValueOf("Backquote"),
|
|
|
|
KeyBackslash: js.ValueOf("Backslash"),
|
|
|
|
KeyBackspace: js.ValueOf("Backspace"),
|
|
|
|
KeyBracketLeft: js.ValueOf("BracketLeft"),
|
|
|
|
KeyBracketRight: js.ValueOf("BracketRight"),
|
|
|
|
KeyC: js.ValueOf("KeyC"),
|
|
|
|
KeyCapsLock: js.ValueOf("CapsLock"),
|
|
|
|
KeyComma: js.ValueOf("Comma"),
|
|
|
|
KeyContextMenu: js.ValueOf("ContextMenu"),
|
|
|
|
KeyControlLeft: js.ValueOf("ControlLeft"),
|
|
|
|
KeyControlRight: js.ValueOf("ControlRight"),
|
|
|
|
KeyD: js.ValueOf("KeyD"),
|
|
|
|
KeyDelete: js.ValueOf("Delete"),
|
|
|
|
KeyDigit0: js.ValueOf("Digit0"),
|
|
|
|
KeyDigit1: js.ValueOf("Digit1"),
|
|
|
|
KeyDigit2: js.ValueOf("Digit2"),
|
|
|
|
KeyDigit3: js.ValueOf("Digit3"),
|
|
|
|
KeyDigit4: js.ValueOf("Digit4"),
|
|
|
|
KeyDigit5: js.ValueOf("Digit5"),
|
|
|
|
KeyDigit6: js.ValueOf("Digit6"),
|
|
|
|
KeyDigit7: js.ValueOf("Digit7"),
|
|
|
|
KeyDigit8: js.ValueOf("Digit8"),
|
|
|
|
KeyDigit9: js.ValueOf("Digit9"),
|
|
|
|
KeyE: js.ValueOf("KeyE"),
|
|
|
|
KeyEnd: js.ValueOf("End"),
|
|
|
|
KeyEnter: js.ValueOf("Enter"),
|
|
|
|
KeyEqual: js.ValueOf("Equal"),
|
|
|
|
KeyEscape: js.ValueOf("Escape"),
|
|
|
|
KeyF: js.ValueOf("KeyF"),
|
|
|
|
KeyF1: js.ValueOf("F1"),
|
|
|
|
KeyF10: js.ValueOf("F10"),
|
|
|
|
KeyF11: js.ValueOf("F11"),
|
|
|
|
KeyF12: js.ValueOf("F12"),
|
2023-10-03 17:34:10 +02:00
|
|
|
KeyF13: js.ValueOf("F13"),
|
|
|
|
KeyF14: js.ValueOf("F14"),
|
|
|
|
KeyF15: js.ValueOf("F15"),
|
|
|
|
KeyF16: js.ValueOf("F16"),
|
|
|
|
KeyF17: js.ValueOf("F17"),
|
|
|
|
KeyF18: js.ValueOf("F18"),
|
|
|
|
KeyF19: js.ValueOf("F19"),
|
2022-02-06 10:13:10 +01:00
|
|
|
KeyF2: js.ValueOf("F2"),
|
2023-10-03 17:34:10 +02:00
|
|
|
KeyF20: js.ValueOf("F20"),
|
|
|
|
KeyF21: js.ValueOf("F21"),
|
|
|
|
KeyF22: js.ValueOf("F22"),
|
|
|
|
KeyF23: js.ValueOf("F23"),
|
|
|
|
KeyF24: js.ValueOf("F24"),
|
2022-02-06 10:13:10 +01:00
|
|
|
KeyF3: js.ValueOf("F3"),
|
|
|
|
KeyF4: js.ValueOf("F4"),
|
|
|
|
KeyF5: js.ValueOf("F5"),
|
|
|
|
KeyF6: js.ValueOf("F6"),
|
|
|
|
KeyF7: js.ValueOf("F7"),
|
|
|
|
KeyF8: js.ValueOf("F8"),
|
|
|
|
KeyF9: js.ValueOf("F9"),
|
|
|
|
KeyG: js.ValueOf("KeyG"),
|
|
|
|
KeyH: js.ValueOf("KeyH"),
|
|
|
|
KeyHome: js.ValueOf("Home"),
|
|
|
|
KeyI: js.ValueOf("KeyI"),
|
|
|
|
KeyInsert: js.ValueOf("Insert"),
|
|
|
|
KeyJ: js.ValueOf("KeyJ"),
|
|
|
|
KeyK: js.ValueOf("KeyK"),
|
|
|
|
KeyL: js.ValueOf("KeyL"),
|
|
|
|
KeyM: js.ValueOf("KeyM"),
|
|
|
|
KeyMetaLeft: js.ValueOf("MetaLeft"),
|
|
|
|
KeyMetaRight: js.ValueOf("MetaRight"),
|
|
|
|
KeyMinus: js.ValueOf("Minus"),
|
|
|
|
KeyN: js.ValueOf("KeyN"),
|
|
|
|
KeyNumLock: js.ValueOf("NumLock"),
|
|
|
|
KeyNumpad0: js.ValueOf("Numpad0"),
|
|
|
|
KeyNumpad1: js.ValueOf("Numpad1"),
|
|
|
|
KeyNumpad2: js.ValueOf("Numpad2"),
|
|
|
|
KeyNumpad3: js.ValueOf("Numpad3"),
|
|
|
|
KeyNumpad4: js.ValueOf("Numpad4"),
|
|
|
|
KeyNumpad5: js.ValueOf("Numpad5"),
|
|
|
|
KeyNumpad6: js.ValueOf("Numpad6"),
|
|
|
|
KeyNumpad7: js.ValueOf("Numpad7"),
|
|
|
|
KeyNumpad8: js.ValueOf("Numpad8"),
|
|
|
|
KeyNumpad9: js.ValueOf("Numpad9"),
|
|
|
|
KeyNumpadAdd: js.ValueOf("NumpadAdd"),
|
|
|
|
KeyNumpadDecimal: js.ValueOf("NumpadDecimal"),
|
|
|
|
KeyNumpadDivide: js.ValueOf("NumpadDivide"),
|
|
|
|
KeyNumpadEnter: js.ValueOf("NumpadEnter"),
|
|
|
|
KeyNumpadEqual: js.ValueOf("NumpadEqual"),
|
|
|
|
KeyNumpadMultiply: js.ValueOf("NumpadMultiply"),
|
|
|
|
KeyNumpadSubtract: js.ValueOf("NumpadSubtract"),
|
|
|
|
KeyO: js.ValueOf("KeyO"),
|
|
|
|
KeyP: js.ValueOf("KeyP"),
|
|
|
|
KeyPageDown: js.ValueOf("PageDown"),
|
|
|
|
KeyPageUp: js.ValueOf("PageUp"),
|
|
|
|
KeyPause: js.ValueOf("Pause"),
|
|
|
|
KeyPeriod: js.ValueOf("Period"),
|
|
|
|
KeyPrintScreen: js.ValueOf("PrintScreen"),
|
|
|
|
KeyQ: js.ValueOf("KeyQ"),
|
|
|
|
KeyQuote: js.ValueOf("Quote"),
|
|
|
|
KeyR: js.ValueOf("KeyR"),
|
|
|
|
KeyS: js.ValueOf("KeyS"),
|
|
|
|
KeyScrollLock: js.ValueOf("ScrollLock"),
|
|
|
|
KeySemicolon: js.ValueOf("Semicolon"),
|
|
|
|
KeyShiftLeft: js.ValueOf("ShiftLeft"),
|
|
|
|
KeyShiftRight: js.ValueOf("ShiftRight"),
|
|
|
|
KeySlash: js.ValueOf("Slash"),
|
|
|
|
KeySpace: js.ValueOf("Space"),
|
|
|
|
KeyT: js.ValueOf("KeyT"),
|
|
|
|
KeyTab: js.ValueOf("Tab"),
|
|
|
|
KeyU: js.ValueOf("KeyU"),
|
|
|
|
KeyV: js.ValueOf("KeyV"),
|
|
|
|
KeyW: js.ValueOf("KeyW"),
|
|
|
|
KeyX: js.ValueOf("KeyX"),
|
|
|
|
KeyY: js.ValueOf("KeyY"),
|
|
|
|
KeyZ: js.ValueOf("KeyZ"),
|
2017-04-13 20:02:38 +02:00
|
|
|
}
|