|
|
|
@ -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; |
|
|
|
|