From 047fa20f28890176e0d86191b3a9fd459d967785 Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 23 Jun 2019 01:01:21 +0200 Subject: fixed key binding, head shots, freezes --- src/Pad.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Pad.h') diff --git a/src/Pad.h b/src/Pad.h index 9180be26..e06aa9a6 100644 --- a/src/Pad.h +++ b/src/Pad.h @@ -292,7 +292,7 @@ public: // keyboard - inline bool GetCharJustDown(char c) { return !!(NewKeyState.VK_KEYS[c] && !OldKeyState.VK_KEYS[c]); } + inline bool GetCharJustDown(int32 c) { return !!(NewKeyState.VK_KEYS[c] && !OldKeyState.VK_KEYS[c]); } inline bool GetFJustDown(int32 n) { return !!(NewKeyState.F[n] && !OldKeyState.F[n]); } inline bool GetEscapeJustDown() { return !!(NewKeyState.ESC && !OldKeyState.ESC); } inline bool GetInsertJustDown() { return !!(NewKeyState.INS && !OldKeyState.INS); } -- cgit v1.2.3