Skip to content

Commit

Permalink
Fixed bug in GetButtonValue
Browse files Browse the repository at this point in the history
Fixes #52
  • Loading branch information
chalonverse authored Feb 4, 2024
1 parent 4828b36 commit ddcb472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chapter08/InputSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ButtonState KeyboardState::GetKeyState(SDL_Scancode keyCode) const

bool MouseState::GetButtonValue(int button) const
{
return (SDL_BUTTON(button) & mCurrButtons) == 1;
return (SDL_BUTTON(button) & mCurrButtons);
}

ButtonState MouseState::GetButtonState(int button) const
Expand Down

0 comments on commit ddcb472

Please sign in to comment.