Update GetTickCount to GetTickCount64

This commit is contained in:
GabsPuNs
2026-05-11 00:21:44 -04:00
parent 6829fc2e4a
commit 73ab0cb28b
16 changed files with 50 additions and 49 deletions

View File

@@ -157,11 +157,11 @@ void Screen::updateEvents()
}
// Arrow key repeat: deliver on first press (when key down and last==0) and while held (throttled)
static DWORD s_arrowLastTime[2] = { 0, 0 };
static DWORD64 s_arrowLastTime[2] = { 0, 0 };
static bool s_arrowFirstRepeat[2] = { false, false };
const DWORD ARROW_REPEAT_DELAY_MS = 250;
const DWORD ARROW_REPEAT_INTERVAL_MS = 50;
DWORD now = GetTickCount();
DWORD64 now = GetTickCount64();
// Poll keyboard events (special keys that may not come through WM_CHAR, e.g. Escape, arrows)
for (int vk = 0; vk < 256; vk++)
@@ -177,7 +177,7 @@ void Screen::updateEvents()
}
else
{
DWORD last = s_arrowLastTime[idx];
DWORD64 last = s_arrowLastTime[idx];
if (last == 0)
deliver = true;
else if (!deliver)