From e4f68ae1df2df83eb95a24bd86d8a8db774eb7a3 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 22 Jan 2021 12:48:56 -0800 Subject: [PATCH] fix mouse button input --- src/Input/Mouse.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Input/Mouse.cs b/src/Input/Mouse.cs index b9b1531..eb22e02 100644 --- a/src/Input/Mouse.cs +++ b/src/Input/Mouse.cs @@ -38,9 +38,9 @@ namespace MoonWorks.Input DeltaX = deltaX; DeltaY = deltaY; - LeftButton = UpdateState(LeftButton, buttons, SDL.SDL_BUTTON_LEFT); - MiddleButton = UpdateState(MiddleButton, buttons, SDL.SDL_BUTTON_MIDDLE); - RightButton = UpdateState(RightButton, buttons, SDL.SDL_BUTTON_RIGHT); + LeftButton = UpdateState(LeftButton, buttons, SDL.SDL_BUTTON_LMASK); + MiddleButton = UpdateState(MiddleButton, buttons, SDL.SDL_BUTTON_MMASK); + RightButton = UpdateState(RightButton, buttons, SDL.SDL_BUTTON_RMASK); } private ButtonState UpdateState(ButtonState state, uint buttonMask, uint buttonFlag)