I am at the end of my wisdom and need some help.
Here are the relevant parts of my code:
proc isKeyPressed(virtKeyCode: int32, stateCode: SHORT): bool =
if GetAsyncKeyState(virtKeyCode) and 0x8000 != 0:
return true
else:
return false
template checkKey(virtKeyCode: int32, keyValue...