mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-10 22:58:09 +00:00
Update GetTickCount to GetTickCount64
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user