fix mouse button input

pull/14/head
cosmonaut 2021-01-22 12:48:56 -08:00
parent 45861e122d
commit e4f68ae1df
1 changed files with 3 additions and 3 deletions

View File

@ -38,9 +38,9 @@ namespace MoonWorks.Input
DeltaX = deltaX; DeltaX = deltaX;
DeltaY = deltaY; DeltaY = deltaY;
LeftButton = UpdateState(LeftButton, buttons, SDL.SDL_BUTTON_LEFT); LeftButton = UpdateState(LeftButton, buttons, SDL.SDL_BUTTON_LMASK);
MiddleButton = UpdateState(MiddleButton, buttons, SDL.SDL_BUTTON_MIDDLE); MiddleButton = UpdateState(MiddleButton, buttons, SDL.SDL_BUTTON_MMASK);
RightButton = UpdateState(RightButton, buttons, SDL.SDL_BUTTON_RIGHT); RightButton = UpdateState(RightButton, buttons, SDL.SDL_BUTTON_RMASK);
} }
private ButtonState UpdateState(ButtonState state, uint buttonMask, uint buttonFlag) private ButtonState UpdateState(ButtonState state, uint buttonMask, uint buttonFlag)