From 4b3bda3391b51d7df1a1c40265fa54cb3e48e758 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 15 Oct 2022 20:31:03 -0500 Subject: [PATCH] Fix missing arg --- olcPixelGameEngine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/olcPixelGameEngine.h b/olcPixelGameEngine.h index f59e85e..166f2ea 100644 --- a/olcPixelGameEngine.h +++ b/olcPixelGameEngine.h @@ -3480,7 +3480,7 @@ namespace olc platform->HandleSystemEvent(); // Compare hardware input states from previous frame - auto ScanHardware = [&](HWButton* pKeys, bool* pStateOld, bool* pStateNew, uint32_t nKeyCount) + auto ScanHardware = [&](HWButton* pKeys, bool* pStateOld, bool* pStateNew, uint32_t nKeyCount,,bool keyboard=true) { bool pressed=false; int key; @@ -3513,7 +3513,7 @@ namespace olc }; ScanHardware(pKeyboardState, pKeyOldState, pKeyNewState, 256); - ScanHardware(pMouseState, pMouseOldState, pMouseNewState, nMouseButtons); + ScanHardware(pMouseState, pMouseOldState, pMouseNewState, nMouseButtons, false); // Cache mouse coordinates so they remain consistent during frame vMousePos = vMousePosCache;