2020-02-21 18:03:56 +01:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
package mobile
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golang.org/x/mobile/event/key"
|
|
|
|
|
2020-10-03 19:35:13 +02:00
|
|
|
"github.com/hajimehoshi/ebiten/v2/internal/driver"
|
2020-02-21 18:03:56 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
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,
|
2021-04-13 17:22:06 +02:00
|
|
|
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,
|
2020-02-21 18:03:56 +01:00
|
|
|
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,
|
2021-04-13 17:22:06 +02:00
|
|
|
key.CodeLeftSquareBracket: driver.KeyBracketLeft,
|
|
|
|
key.CodeRightSquareBracket: driver.KeyBracketRight,
|
2020-02-21 18:03:56 +01:00
|
|
|
key.CodeBackslash: driver.KeyBackslash,
|
|
|
|
key.CodeSemicolon: driver.KeySemicolon,
|
2021-04-13 17:22:06 +02:00
|
|
|
key.CodeApostrophe: driver.KeyQuote,
|
|
|
|
key.CodeGraveAccent: driver.KeyBackquote,
|
2020-02-21 18:03:56 +01:00
|
|
|
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,
|
2021-04-13 17:22:06 +02:00
|
|
|
key.CodeRightArrow: driver.KeyArrowRight,
|
|
|
|
key.CodeLeftArrow: driver.KeyArrowLeft,
|
|
|
|
key.CodeDownArrow: driver.KeyArrowDown,
|
|
|
|
key.CodeUpArrow: driver.KeyArrowUp,
|
2020-02-21 18:03:56 +01:00
|
|
|
key.CodeKeypadNumLock: driver.KeyNumLock,
|
2021-04-13 17:22:06 +02:00
|
|
|
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,
|
2020-02-21 18:03:56 +01:00
|
|
|
}
|