mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
149736c3cf
Updates #1983
133 lines
5.5 KiB
Go
133 lines
5.5 KiB
Go
// Copyright 2013 The Ebiten Authors
|
|
//
|
|
// 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.
|
|
|
|
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
|
|
|
//go:build (android || ios) && !ebitencbackend
|
|
// +build android ios
|
|
// +build !ebitencbackend
|
|
|
|
package ui
|
|
|
|
import (
|
|
"golang.org/x/mobile/event/key"
|
|
|
|
"github.com/hajimehoshi/ebiten/v2/internal/driver"
|
|
)
|
|
|
|
var gbuildKeyToDriverKey = map[key.Code]driver.Key{
|
|
key.CodeA: driver.KeyA,
|
|
key.CodeB: driver.KeyB,
|
|
key.CodeC: driver.KeyC,
|
|
key.CodeD: driver.KeyD,
|
|
key.CodeE: driver.KeyE,
|
|
key.CodeF: driver.KeyF,
|
|
key.CodeG: driver.KeyG,
|
|
key.CodeH: driver.KeyH,
|
|
key.CodeI: driver.KeyI,
|
|
key.CodeJ: driver.KeyJ,
|
|
key.CodeK: driver.KeyK,
|
|
key.CodeL: driver.KeyL,
|
|
key.CodeM: driver.KeyM,
|
|
key.CodeN: driver.KeyN,
|
|
key.CodeO: driver.KeyO,
|
|
key.CodeP: driver.KeyP,
|
|
key.CodeQ: driver.KeyQ,
|
|
key.CodeR: driver.KeyR,
|
|
key.CodeS: driver.KeyS,
|
|
key.CodeT: driver.KeyT,
|
|
key.CodeU: driver.KeyU,
|
|
key.CodeV: driver.KeyV,
|
|
key.CodeW: driver.KeyW,
|
|
key.CodeX: driver.KeyX,
|
|
key.CodeY: driver.KeyY,
|
|
key.CodeZ: driver.KeyZ,
|
|
key.Code1: driver.KeyDigit1,
|
|
key.Code2: driver.KeyDigit2,
|
|
key.Code3: driver.KeyDigit3,
|
|
key.Code4: driver.KeyDigit4,
|
|
key.Code5: driver.KeyDigit5,
|
|
key.Code6: driver.KeyDigit6,
|
|
key.Code7: driver.KeyDigit7,
|
|
key.Code8: driver.KeyDigit8,
|
|
key.Code9: driver.KeyDigit9,
|
|
key.Code0: driver.KeyDigit0,
|
|
key.CodeReturnEnter: driver.KeyEnter,
|
|
key.CodeEscape: driver.KeyEscape,
|
|
key.CodeDeleteBackspace: driver.KeyBackspace,
|
|
key.CodeTab: driver.KeyTab,
|
|
key.CodeSpacebar: driver.KeySpace,
|
|
key.CodeHyphenMinus: driver.KeyMinus,
|
|
key.CodeEqualSign: driver.KeyEqual,
|
|
key.CodeLeftSquareBracket: driver.KeyBracketLeft,
|
|
key.CodeRightSquareBracket: driver.KeyBracketRight,
|
|
key.CodeBackslash: driver.KeyBackslash,
|
|
key.CodeSemicolon: driver.KeySemicolon,
|
|
key.CodeApostrophe: driver.KeyQuote,
|
|
key.CodeGraveAccent: driver.KeyBackquote,
|
|
key.CodeComma: driver.KeyComma,
|
|
key.CodeFullStop: driver.KeyPeriod,
|
|
key.CodeSlash: driver.KeySlash,
|
|
key.CodeCapsLock: driver.KeyCapsLock,
|
|
key.CodeF1: driver.KeyF1,
|
|
key.CodeF2: driver.KeyF2,
|
|
key.CodeF3: driver.KeyF3,
|
|
key.CodeF4: driver.KeyF4,
|
|
key.CodeF5: driver.KeyF5,
|
|
key.CodeF6: driver.KeyF6,
|
|
key.CodeF7: driver.KeyF7,
|
|
key.CodeF8: driver.KeyF8,
|
|
key.CodeF9: driver.KeyF9,
|
|
key.CodeF10: driver.KeyF10,
|
|
key.CodeF11: driver.KeyF11,
|
|
key.CodeF12: driver.KeyF12,
|
|
key.CodePause: driver.KeyPause,
|
|
key.CodeInsert: driver.KeyInsert,
|
|
key.CodeHome: driver.KeyHome,
|
|
key.CodePageUp: driver.KeyPageUp,
|
|
key.CodeDeleteForward: driver.KeyDelete,
|
|
key.CodeEnd: driver.KeyEnd,
|
|
key.CodePageDown: driver.KeyPageDown,
|
|
key.CodeRightArrow: driver.KeyArrowRight,
|
|
key.CodeLeftArrow: driver.KeyArrowLeft,
|
|
key.CodeDownArrow: driver.KeyArrowDown,
|
|
key.CodeUpArrow: driver.KeyArrowUp,
|
|
key.CodeKeypadNumLock: driver.KeyNumLock,
|
|
key.CodeKeypadSlash: driver.KeyNumpadDivide,
|
|
key.CodeKeypadAsterisk: driver.KeyNumpadMultiply,
|
|
key.CodeKeypadHyphenMinus: driver.KeyNumpadSubtract,
|
|
key.CodeKeypadPlusSign: driver.KeyNumpadAdd,
|
|
key.CodeKeypadEnter: driver.KeyNumpadEnter,
|
|
key.CodeKeypad1: driver.KeyNumpad1,
|
|
key.CodeKeypad2: driver.KeyNumpad2,
|
|
key.CodeKeypad3: driver.KeyNumpad3,
|
|
key.CodeKeypad4: driver.KeyNumpad4,
|
|
key.CodeKeypad5: driver.KeyNumpad5,
|
|
key.CodeKeypad6: driver.KeyNumpad6,
|
|
key.CodeKeypad7: driver.KeyNumpad7,
|
|
key.CodeKeypad8: driver.KeyNumpad8,
|
|
key.CodeKeypad9: driver.KeyNumpad9,
|
|
key.CodeKeypad0: driver.KeyNumpad0,
|
|
key.CodeKeypadFullStop: driver.KeyNumpadDecimal,
|
|
key.CodeKeypadEqualSign: driver.KeyNumpadEqual,
|
|
key.CodeLeftControl: driver.KeyControlLeft,
|
|
key.CodeLeftShift: driver.KeyShiftLeft,
|
|
key.CodeLeftAlt: driver.KeyAltLeft,
|
|
key.CodeLeftGUI: driver.KeyMetaLeft,
|
|
key.CodeRightControl: driver.KeyControlRight,
|
|
key.CodeRightShift: driver.KeyShiftRight,
|
|
key.CodeRightAlt: driver.KeyAltRight,
|
|
key.CodeRightGUI: driver.KeyMetaRight,
|
|
}
|