nother horrible bug fix

This commit is contained in:
iProgramInCpp
2023-08-20 01:58:51 +03:00
parent 6719b151ab
commit 4a7be6918f

View File

@@ -75,7 +75,7 @@ MouseAction* Mouse::getEvent()
Mouse::ButtonState Mouse::getButtonState(ButtonType btn)
{
if (btn <= ButtonType::MIN || btn > ButtonType::COUNT)
if (btn < ButtonType::MIN || btn >= ButtonType::COUNT)
return ButtonState::UP;
return _buttonStates[btn];