Corrected code in Animations.cpp

This commit is contained in:
NovaRain
2021-05-17 10:46:03 +08:00
parent cc715e334a
commit 0cecf9af17
4 changed files with 54 additions and 43 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ public:
KeyPressHook(&dxKey, (state > 0), MapVirtualKeyEx(dxKey, MAPVK_VSC_TO_VK, keyboardLayout));
if ((signed)dxKey > 0 && dxKey != buf[i].dwOfs) {
if ((long)dxKey > 0 && dxKey != buf[i].dwOfs) {
keysDown[buf[i].dwOfs] = oldState;
buf[i].dwOfs = dxKey; // Override key
keysDown[buf[i].dwOfs] = state;