@metropolision wrote:
Hello,
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) { Console.WriteLine(++counter); }
Posts: 2
Participants: 2