Input.IsMouseButtonDown bugged when multiple mouse buttons are held down #675
Description
If you use Input.IsMouseButtonDown to check if one button is held down then it works fine, however; if you use it to check if more mouse buttons are down at the same time then it is bugged.
Releasing one mouse button (either left or right) makes it clear the Input.DownButtons array. This means that if you for example hold down both left and right mouse button, then release right mosue button it will say that left mouse button is also released.
Steps to reproduce:
Create a 'New Game'
go into BasicCameraController.cs
Change line 118 from
if (Input.IsMouseButtonDown(MouseButton.Right))
to
if (Input.IsMouseButtonDown(MouseButton.Right) || Input.IsKeyDown(Keys.Left))
Start the game. Hold down both mouse buttons to look around, then only release one mouse button while still holding down the other. This will cause the MousePosition to be unlocked.
Activity