Skip to content

Commit 877b8d7

Browse files
roys-codingflibitijibibo
authored andcommitted
MouseState equality operator bugfix.
Fixes a bug where the MouseState's equality operator does not check for XButton1 and XButton2.
1 parent 87c46aa commit 877b8d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Input/MouseState.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ ButtonState xButton2
144144
left.LeftButton == right.LeftButton &&
145145
left.MiddleButton == right.MiddleButton &&
146146
left.RightButton == right.RightButton &&
147-
left.ScrollWheelValue == right.ScrollWheelValue );
147+
left.ScrollWheelValue == right.ScrollWheelValue &&
148+
left.XButton1 == right.XButton1 &&
149+
left.XButton2 == right.XButton2 );
148150
}
149151

150152
/// <summary>

0 commit comments

Comments
 (0)