48 { 28, { 13, 0 }, { 13, 0 }, { 10, 0 }, { 0, 166 } },
49 { 53, { 47, 0 }, { 63, 0 }, { 0, 149 }, { 0, 164 } },
50 { 71, { 224, 71 }, { 224, 71 }, { 224, 119 }, { 0, 151 } },
51 { 72, { 224, 72 }, { 224, 72 }, { 224, 141 }, { 0, 152 } },
52 { 73, { 224, 73 }, { 224, 73 }, { 224, 134 }, { 0, 153 } },
53 { 75, { 224, 75 }, { 224, 75 }, { 224, 115 }, { 0, 155 } },
54 { 77, { 224, 77 }, { 224, 77 }, { 224, 116 }, { 0, 157 } },
55 { 79, { 224, 79 }, { 224, 79 }, { 224, 117 }, { 0, 159 } },
56 { 80, { 224, 80 }, { 224, 80 }, { 224, 145 }, { 0, 160 } },
57 { 81, { 224, 81 }, { 224, 81 }, { 224, 118 }, { 0, 161 } },
58 { 82, { 224, 82 }, { 224, 82 }, { 224, 146 }, { 0, 162 } },
59 { 83, { 224, 83 }, { 224, 83 }, { 224, 147 }, { 0, 163 } }
63#define NUM_EKA_ELTS (sizeof(EnhancedKeys) / sizeof(EnhKeyVals))
72 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
74 { { 27, 0 }, { 27, 0 }, { 27, 0 }, { 0, 1 } },
75 { { 49, 0 }, { 33, 0 }, { 0, 0 }, { 0, 120 } },
76 { { 50, 0 }, { 64, 0 }, { 0, 3 }, { 0, 121 } },
77 { { 51, 0 }, { 35, 0 }, { 0, 0 }, { 0, 122 } },
78 { { 52, 0 }, { 36, 0 }, { 0, 0 }, { 0, 123 } },
79 { { 53, 0 }, { 37, 0 }, { 0, 0 }, { 0, 124 } },
80 { { 54, 0 }, { 94, 0 }, { 30, 0 }, { 0, 125 } },
81 { { 55, 0 }, { 38, 0 }, { 0, 0 }, { 0, 126 } },
82 { { 56, 0 }, { 42, 0 }, { 0, 0 }, { 0, 127 } },
83 { { 57, 0 }, { 40, 0 }, { 0, 0 }, { 0, 128 } },
84 { { 48, 0 }, { 41, 0 }, { 0, 0 }, { 0, 129 } },
85 { { 45, 0 }, { 95, 0 }, { 31, 0 }, { 0, 130 } },
86 { { 61, 0 }, { 43, 0 }, { 0, 0 }, { 0, 131 } },
87 { { 8, 0 }, { 8, 0 }, { 127, 0 }, { 0, 14 } },
88 { { 9, 0 }, { 0, 15 }, { 0, 148 }, { 0, 15 } },
89 { { 113, 0 }, { 81, 0 }, { 17, 0 }, { 0, 16 } },
90 { { 119, 0 }, { 87, 0 }, { 23, 0 }, { 0, 17 } },
91 { { 101, 0 }, { 69, 0 }, { 5, 0 }, { 0, 18 } },
92 { { 114, 0 }, { 82, 0 }, { 18, 0 }, { 0, 19 } },
93 { { 116, 0 }, { 84, 0 }, { 20, 0 }, { 0, 20 } },
94 { { 121, 0 }, { 89, 0 }, { 25, 0 }, { 0, 21 } },
95 { { 117, 0 }, { 85, 0 }, { 21, 0 }, { 0, 22 } },
96 { { 105, 0 }, { 73, 0 }, { 9, 0 }, { 0, 23 } },
97 { { 111, 0 }, { 79, 0 }, { 15, 0 }, { 0, 24 } },
98 { { 112, 0 }, { 80, 0 }, { 16, 0 }, { 0, 25 } },
99 { { 91, 0 }, { 123, 0 }, { 27, 0 }, { 0, 26 } },
100 { { 93, 0 }, { 125, 0 }, { 29, 0 }, { 0, 27 } },
101 { { 13, 0 }, { 13, 0 }, { 10, 0 }, { 0, 28 } },
104 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
106 { { 97, 0 }, { 65, 0 }, { 1, 0 }, { 0, 30 } },
107 { { 115, 0 }, { 83, 0 }, { 19, 0 }, { 0, 31 } },
108 { { 100, 0 }, { 68, 0 }, { 4, 0 }, { 0, 32 } },
109 { { 102, 0 }, { 70, 0 }, { 6, 0 }, { 0, 33 } },
110 { { 103, 0 }, { 71, 0 }, { 7, 0 }, { 0, 34 } },
111 { { 104, 0 }, { 72, 0 }, { 8, 0 }, { 0, 35 } },
112 { { 106, 0 }, { 74, 0 }, { 10, 0 }, { 0, 36 } },
113 { { 107, 0 }, { 75, 0 }, { 11, 0 }, { 0, 37 } },
114 { { 108, 0 }, { 76, 0 }, { 12, 0 }, { 0, 38 } },
115 { { 59, 0 }, { 58, 0 }, { 0, 0 }, { 0, 39 } },
116 { { 39, 0 }, { 34, 0 }, { 0, 0 }, { 0, 40 } },
117 { { 96, 0 }, { 126, 0 }, { 0, 0 }, { 0, 41 } },
120 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
122 { { 92, 0 }, { 124, 0 }, { 28, 0 }, { 0, 0 } },
123 { { 122, 0 }, { 90, 0 }, { 26, 0 }, { 0, 44 } },
124 { { 120, 0 }, { 88, 0 }, { 24, 0 }, { 0, 45 } },
125 { { 99, 0 }, { 67, 0 }, { 3, 0 }, { 0, 46 } },
126 { { 118, 0 }, { 86, 0 }, { 22, 0 }, { 0, 47 } },
127 { { 98, 0 }, { 66, 0 }, { 2, 0 }, { 0, 48 } },
128 { { 110, 0 }, { 78, 0 }, { 14, 0 }, { 0, 49 } },
129 { { 109, 0 }, { 77, 0 }, { 13, 0 }, { 0, 50 } },
130 { { 44, 0 }, { 60, 0 }, { 0, 0 }, { 0, 51 } },
131 { { 46, 0 }, { 62, 0 }, { 0, 0 }, { 0, 52 } },
132 { { 47, 0 }, { 63, 0 }, { 0, 0 }, { 0, 53 } },
135 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
137 { { 42, 0 }, { 0, 0 }, { 114, 0 }, { 0, 0 } },
140 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
142 { { 32, 0 }, { 32, 0 }, { 32, 0 }, { 32, 0 } },
145 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
147 { { 0, 59 }, { 0, 84 }, { 0, 94 }, { 0, 104 } },
148 { { 0, 60 }, { 0, 85 }, { 0, 95 }, { 0, 105 } },
149 { { 0, 61 }, { 0, 86 }, { 0, 96 }, { 0, 106 } },
150 { { 0, 62 }, { 0, 87 }, { 0, 97 }, { 0, 107 } },
151 { { 0, 63 }, { 0, 88 }, { 0, 98 }, { 0, 108 } },
152 { { 0, 64 }, { 0, 89 }, { 0, 99 }, { 0, 109 } },
153 { { 0, 65 }, { 0, 90 }, { 0, 100 }, { 0, 110 } },
154 { { 0, 66 }, { 0, 91 }, { 0, 101 }, { 0, 111 } },
155 { { 0, 67 }, { 0, 92 }, { 0, 102 }, { 0, 112 } },
156 { { 0, 68 }, { 0, 93 }, { 0, 103 }, { 0, 113 } },
159 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
160 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
162 { { 0, 71 }, { 55, 0 }, { 0, 119 }, { 0, 0 } },
163 { { 0, 72 }, { 56, 0 }, { 0, 141 }, { 0, 0 } },
164 { { 0, 73 }, { 57, 0 }, { 0, 132 }, { 0, 0 } },
165 { { 0, 0 }, { 45, 0 }, { 0, 0 }, { 0, 0 } },
166 { { 0, 75 }, { 52, 0 }, { 0, 115 }, { 0, 0 } },
167 { { 0, 0 }, { 53, 0 }, { 0, 0 }, { 0, 0 } },
168 { { 0, 77 }, { 54, 0 }, { 0, 116 }, { 0, 0 } },
169 { { 0, 0 }, { 43, 0 }, { 0, 0 }, { 0, 0 } },
170 { { 0, 79 }, { 49, 0 }, { 0, 117 }, { 0, 0 } },
171 { { 0, 80 }, { 50, 0 }, { 0, 145 }, { 0, 0 } },
172 { { 0, 81 }, { 51, 0 }, { 0, 118 }, { 0, 0 } },
173 { { 0, 82 }, { 48, 0 }, { 0, 146 }, { 0, 0 } },
174 { { 0, 83 }, { 46, 0 }, { 0, 147 }, { 0, 0 } },
177 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
178 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
179 { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
181 { { 224, 133 }, { 224, 135 }, { 224, 137 }, { 224, 139 } },
182 { { 224, 134 }, { 224, 136 }, { 224, 138 }, { 224, 140 } }
291 DWORD old_console_mode;
318 wchar_t const c_buffer[2] = {
c,
L'\0'};
328 if (amount_written >= 1) {
329 result = mb_chars[0] & 0xFF;
332 if (amount_written >= 2) {
333 for (
size_t i = 1;
i < amount_written; ++
i) {
423 if (num_pending == 0) {
438 if (num_peeked == 0 || num_peeked > num_pending) {
449 if (!
p->Event.KeyEvent.bKeyDown)
452 if (
p->Event.KeyEvent.uChar.AsciiChar == 0 &&
567 if ((pCP->LeadChar != 0 && pCP->LeadChar != 224) || pCP->SecondChar == 0)
void __cdecl __acrt_unlock(_In_ __acrt_lock_id lock)
size_t __acrt_wcs_to_mbs_cp_array(wchar_t const *const null_terminated_input_string, char(&buffer)[N], unsigned int const code_page)
__acrt_lock(__acrt_heap_lock)
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP(VOID)
static EnhKeyVals const EnhancedKeys[]
static int peek_next_getch_pushback_buffer()
static int getch_pushback_buffer_index
int __cdecl _kbhit_nolock()
static bool is_getch_pushback_buffer_full()
size_t const getch_pushback_buffer_capacity
int __cdecl _ungetch_nolock(int const c)
intptr_t __dcrt_lowio_console_input_handle
static int get_next_getch_pushback_buffer()
static int getch_pushback_buffer[getch_pushback_buffer_capacity]
CharPair const *__cdecl _getextendedkeycode(KEY_EVENT_RECORD *)
static int getch_pushback_buffer_current_size
int __cdecl _getch_nolock()
int __cdecl _getche_nolock()
static void add_to_getch_pushback_buffer(int const c)
int __cdecl _ungetch(int const c)
static NormKeyVals const NormalKeys[]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BOOL __cdecl __dcrt_read_console_input(_Out_ PINPUT_RECORD lpBuffer, _In_ DWORD nLength, _Out_ LPDWORD lpNumberOfEventsRead)
BOOL __cdecl __dcrt_peek_console_input_a(_Out_ PINPUT_RECORD lpBuffer, _In_ DWORD nLength, _Out_ LPDWORD lpNumberOfEventsRead)
BOOL __cdecl __dcrt_get_input_console_mode(_Out_ LPDWORD lpMode)
BOOL __cdecl __dcrt_get_number_of_console_input_events(_Out_ LPDWORD lpcNumberOfEvents)
BOOL __cdecl __dcrt_lowio_ensure_console_input_initialized()
BOOL __cdecl __dcrt_set_input_console_mode(_In_ DWORD dwMode)
_CRTIMP int __cdecl _putch_nolock(_In_ int _Ch)
union _KEY_EVENT_RECORD::@3338 uChar
#define LEFT_CTRL_PRESSED
#define RIGHT_CTRL_PRESSED
#define RIGHT_ALT_PRESSED