Compare commits

1 Commits

Author SHA1 Message Date
df7ebd6973 ReadConsoleInput -> ReadConsoleInputW 2026-01-09 06:50:40 +01:00

2
tim.h
View File

@@ -818,7 +818,7 @@ static void read_event(int timeout_ms) {
// received input // received input
INPUT_RECORD rec = {0}; INPUT_RECORD rec = {0};
DWORD n = 0; DWORD n = 0;
ReadConsoleInput(h, &rec, 1, &n); ReadConsoleInputW(h, &rec, 1, &n);
switch (rec.EventType) { switch (rec.EventType) {
case KEY_EVENT: { case KEY_EVENT: {