Can't get the mouse state correctly when fast clicking on Linux


I’ve been making a game using MonoGame 3.6 on Ubuntu 14.04. I have a problem getting the mouse state correctly when fast clicking. If I click slowly, it gets every click, but when fast clicking, the counter doesn’t increase sometimes. For example, I actually clicked 10 times, but the counter is 5. This problem doesn’t happen in Windows 10.

I have such code in my Update method:

prevMouseState = mouseState;
mouseState = Mouse.GetState();
if (mouseState.LeftButton == ButtonState.Pressed && prevMouseState.LeftButton == ButtonState.Released)

For me it seems to track it just fine on Linux. Are you sure it’s not just that your other parts of the code are slowing down your Update/Draw loop? All Mouse.GetState() does is reads the current state of the mouse so if you make your game lag it will cause you to skip reading parts of the input.