Tesseract-Engine/assets/scripts/keycode.lua

250 lines
6.7 KiB
Lua

--@module KeyCodes
local _Engine_KeyCodes = _T_KeyCode_Table
---@class KeyCode
---@field Space number
---@field Apostrophe number
---@field Comma number
---@field Minus number
---@field Period number
---@field Slash number
---@field D0 number
---@field D1 number
---@field D2 number
---@field D3 number
---@field D4 number
---@field D5 number
---@field D6 number
---@field D7 number
---@field D8 number
---@field D9 number
---@field Semicolon number
---@field Equal number
---@field A number
---@field B number
---@field C number
---@field D number
---@field E number
---@field F number
---@field G number
---@field H number
---@field I number
---@field J number
---@field K number
---@field L number
---@field M number
---@field N number
---@field O number
---@field P number
---@field Q number
---@field R number
---@field S number
---@field T number
---@field U number
---@field V number
---@field W number
---@field X number
---@field Y number
---@field Z number
---@field LeftBracket number
---@field Backslash number
---@field RightBracket number
---@field GraveAccent number
---@field World1 number
---@field World2 number
---@field Escape number
---@field Enter number
---@field Tab number
---@field Backspace number
---@field Insert number
---@field Delete number
---@field Right number
---@field Left number
---@field Down number
---@field Up number
---@field PageUp number
---@field PageDown number
---@field Home number
---@field End number
---@field CapsLock number
---@field ScrollLock number
---@field NumLock number
---@field PrintScreen number
---@field Pause number
---@field F1 number
---@field F2 number
---@field F3 number
---@field F4 number
---@field F5 number
---@field F6 number
---@field F7 number
---@field F8 number
---@field F9 number
---@field F10 number
---@field F11 number
---@field F12 number
---@field F13 number
---@field F14 number
---@field F15 number
---@field F16 number
---@field F17 number
---@field F18 number
---@field F19 number
---@field F20 number
---@field F21 number
---@field F22 number
---@field F23 number
---@field F24 number
---@field F25 number
---@field KP0 number
---@field KP1 number
---@field KP2 number
---@field KP3 number
---@field KP4 number
---@field KP5 number
---@field KP6 number
---@field KP7 number
---@field KP8 number
---@field KP9 number
---@field KPDecimal number
---@field KPDivide number
---@field KPMultiply number
---@field KPSubtract number
---@field KPAdd number
---@field KPEnter number
---@field KPEqual number
---@field LeftShift number
---@field LeftControl number
---@field LeftAlt number
---@field LeftSuper number
---@field RightShift number
---@field RightControl number
---@field RightAlt number
---@field RightSuper number
---@field Menu number
local KeyCodes = {
Space = _Engine_KeyCodes.Space,
Apostrophe = _Engine_KeyCodes.Apostrophe,
Comma = _Engine_KeyCodes.Comma,
Minus = _Engine_KeyCodes.Minus,
Period = _Engine_KeyCodes.Period,
Slash = _Engine_KeyCodes.Slash,
D0 = _Engine_KeyCodes.D0,
D1 = _Engine_KeyCodes.D1,
D2 = _Engine_KeyCodes.D2,
D3 = _Engine_KeyCodes.D3,
D4 = _Engine_KeyCodes.D4,
D5 = _Engine_KeyCodes.D5,
D6 = _Engine_KeyCodes.D6,
D7 = _Engine_KeyCodes.D7,
D8 = _Engine_KeyCodes.D8,
D9 = _Engine_KeyCodes.D9,
Semicolon = _Engine_KeyCodes.Semicolon,
Equal = _Engine_KeyCodes.Equal,
A = _Engine_KeyCodes.A,
B = _Engine_KeyCodes.B,
C = _Engine_KeyCodes.C,
D = _Engine_KeyCodes.D,
E = _Engine_KeyCodes.E,
F = _Engine_KeyCodes.F,
G = _Engine_KeyCodes.G,
H = _Engine_KeyCodes.H,
I = _Engine_KeyCodes.I,
J = _Engine_KeyCodes.J,
K = _Engine_KeyCodes.K,
L = _Engine_KeyCodes.L,
M = _Engine_KeyCodes.M,
N = _Engine_KeyCodes.N,
O = _Engine_KeyCodes.O,
P = _Engine_KeyCodes.P,
Q = _Engine_KeyCodes.Q,
R = _Engine_KeyCodes.R,
S = _Engine_KeyCodes.S,
T = _Engine_KeyCodes.T,
U = _Engine_KeyCodes.U,
V = _Engine_KeyCodes.V,
W = _Engine_KeyCodes.W,
X = _Engine_KeyCodes.X,
Y = _Engine_KeyCodes.Y,
Z = _Engine_KeyCodes.Z,
LeftBracket = _Engine_KeyCodes.LeftBracket,
Backslash = _Engine_KeyCodes.Backslash,
RightBracket = _Engine_KeyCodes.RightBracket,
GraveAccent = _Engine_KeyCodes.GraveAccent,
World1 = _Engine_KeyCodes.World1,
World2 = _Engine_KeyCodes.World2,
Escape = _Engine_KeyCodes.Escape,
Enter = _Engine_KeyCodes.Enter,
Tab = _Engine_KeyCodes.Tab,
Backspace = _Engine_KeyCodes.Backspace,
Insert = _Engine_KeyCodes.Insert,
Delete = _Engine_KeyCodes.Delete,
Right = _Engine_KeyCodes.Right,
Left = _Engine_KeyCodes.Left,
Down = _Engine_KeyCodes.Down,
Up = _Engine_KeyCodes.Up,
PageUp = _Engine_KeyCodes.PageUp,
PageDown = _Engine_KeyCodes.PageDown,
Home = _Engine_KeyCodes.Home,
End = _Engine_KeyCodes.End,
CapsLock = _Engine_KeyCodes.CapsLock,
ScrollLock = _Engine_KeyCodes.ScrollLock,
NumLock = _Engine_KeyCodes.NumLock,
PrintScreen = _Engine_KeyCodes.PrintScreen,
Pause = _Engine_KeyCodes.Pause,
F1 = _Engine_KeyCodes.F1,
F2 = _Engine_KeyCodes.F2,
F3 = _Engine_KeyCodes.F3,
F4 = _Engine_KeyCodes.F4,
F5 = _Engine_KeyCodes.F5,
F6 = _Engine_KeyCodes.F6,
F7 = _Engine_KeyCodes.F7,
F8 = _Engine_KeyCodes.F8,
F9 = _Engine_KeyCodes.F9,
F10 = _Engine_KeyCodes.F10,
F11 = _Engine_KeyCodes.F11,
F12 = _Engine_KeyCodes.F12,
F13 = _Engine_KeyCodes.F13,
F14 = _Engine_KeyCodes.F14,
F15 = _Engine_KeyCodes.F15,
F16 = _Engine_KeyCodes.F16,
F17 = _Engine_KeyCodes.F17,
F18 = _Engine_KeyCodes.F18,
F19 = _Engine_KeyCodes.F19,
F20 = _Engine_KeyCodes.F20,
F21 = _Engine_KeyCodes.F21,
F22 = _Engine_KeyCodes.F22,
F23 = _Engine_KeyCodes.F23,
F24 = _Engine_KeyCodes.F24,
F25 = _Engine_KeyCodes.F25,
KP0 = _Engine_KeyCodes.KP0,
KP1 = _Engine_KeyCodes.KP1,
KP2 = _Engine_KeyCodes.KP2,
KP3 = _Engine_KeyCodes.KP3,
KP4 = _Engine_KeyCodes.KP4,
KP5 = _Engine_KeyCodes.KP5,
KP6 = _Engine_KeyCodes.KP6,
KP7 = _Engine_KeyCodes.KP7,
KP8 = _Engine_KeyCodes.KP8,
KP9 = _Engine_KeyCodes.KP9,
KPDecimal = _Engine_KeyCodes.KPDecimal,
KPDivide = _Engine_KeyCodes.KPDivide,
KPMultiply = _Engine_KeyCodes.KPMultiply,
KPSubtract = _Engine_KeyCodes.KPSubtract,
KPAdd = _Engine_KeyCodes.KPAdd,
KPEnter = _Engine_KeyCodes.KPEnter,
KPEqual = _Engine_KeyCodes.KPEqual,
LeftShift = _Engine_KeyCodes.LeftShift,
LeftControl = _Engine_KeyCodes.LeftControl,
LeftAlt = _Engine_KeyCodes.LeftAlt,
LeftSuper = _Engine_KeyCodes.LeftSuper,
RightShift = _Engine_KeyCodes.RightShift,
RightControl = _Engine_KeyCodes.RightControl,
RightAlt = _Engine_KeyCodes.RightAlt,
RightSuper = _Engine_KeyCodes.RightSuper,
Menu = _Engine_KeyCodes.Menu
}
return KeyCodes