LeviLamina
Loading...
Searching...
No Matches
Keyboard.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8class TextInput;
9// clang-format on
10
11class Keyboard {
12public:
13 // Keyboard inner types define
14 enum : int {
15 Goback = 4,
16 Backspace = 8,
17 Tab = 9,
18 Return = 13,
19 Pause = 19,
20 Lshift = 16,
21 Control = 17,
22 Menu = 18,
23 CapsLock = 20,
24 Escape = 27,
25 Space = 32,
26 PgUp = 33,
27 PgDown = 34,
28 End = 35,
29 Home = 36,
30 Left = 37,
31 Up = 38,
32 Right = 39,
33 Down = 40,
34 Insert = 45,
35 Delete = 46,
36 Key0 = 48,
37 Key1 = 49,
38 Key2 = 50,
39 Key3 = 51,
40 Key4 = 52,
41 Key5 = 53,
42 Key6 = 54,
43 Key7 = 55,
44 Key8 = 56,
45 Key9 = 57,
46 A = 65,
47 B = 66,
48 C = 67,
49 D = 68,
50 E = 69,
51 F = 70,
52 G = 71,
53 H = 72,
54 I = 73,
55 J = 74,
56 K = 75,
57 L = 76,
58 M = 77,
59 N = 78,
60 O = 79,
61 P = 80,
62 Q = 81,
63 R = 82,
64 S = 83,
65 T = 84,
66 U = 85,
67 V = 86,
68 W = 87,
69 X = 88,
70 Y = 89,
71 Z = 90,
72 Numpad0 = 96,
73 Numpad1 = 97,
74 Numpad2 = 98,
75 Numpad3 = 99,
76 Numpad4 = 100,
77 Numpad5 = 101,
78 Numpad6 = 102,
79 Numpad7 = 103,
80 Numpad8 = 104,
81 Numpad9 = 105,
82 Multiply = 106,
83 Add = 107,
84 Subtract = 109,
85 Decimal = 110,
86 Divide = 111,
87 F1 = 112,
88 F2 = 113,
89 F3 = 114,
90 F4 = 115,
91 F5 = 116,
92 F6 = 117,
93 F7 = 118,
94 F8 = 119,
95 F9 = 120,
96 F10 = 121,
97 F11 = 122,
98 F12 = 123,
99 F13 = 124,
100 AsciiDelete = 127,
101 NumLock = 144,
102 Scroll = 145,
103 Semicolon = 186,
104 Equals = 187,
105 Comma = 188,
106 Minus = 189,
107 Period = 190,
108 Slash = 191,
109 Grave = 192,
110 Lbracket = 219,
111 Backslash = 220,
112 Rbracket = 221,
113 Apostrophe = 222,
114 AndroidMenu = 255,
115 Count = 256,
116 };
117
118public:
119 // static functions
120 // NOLINTBEGIN
121 MCAPI_C static void reset();
122 // NOLINTEND
123
124public:
125 // static variables
126 // NOLINTBEGIN
127 MCAPI_C static int& _caretLocationIndex();
128
129 MCAPI_C static int& _gameControllerId();
130
131 MCAPI_C static int& _index();
132
133 MCAPI_C static ::std::vector<int>& _inputCaretLocation();
134
135 MCAPI_C static ::std::vector<::TextInput>& _inputText();
136
137 MCAPI_C static ::std::vector<::KeyboardAction>& _inputs();
138
139 MCAPI_C static ::std::array<::std::string_view, 256>& _keyNames();
140
141 MCAPI_C static ::std::array<::std::string_view, 256>& _shortKeyNames();
142
143 MCAPI_C static ::std::add_lvalue_reference_t<int[]> _states();
144
145 MCAPI_C static int& _textIndex();
146
147 MCAPI_C static ::std::array<::std::string_view, 256>& _ttsKeyNames();
148 // NOLINTEND
149};
Definition KeyboardAction.h:5
Definition Keyboard.h:11
Definition TextInput.h:5