You will need to compare the current state of the mouse and the last state of the mouse.
In your class you will have declared MouseState mouseStateCurrent, mouseStatePrevious; , and it will be something like this:
mouseStateCurrent = Mouse.GetState(); if (mouseStateCurrent.LeftButton == ButtonState.Pressed && mouseStatePrevious.LeftButton == ButtonState.Released) { currentSelection++; } mouseStatePrevious = mouseStateCurrent;
Thus, it will find that in the previous time you clicked it, then you release it - only then it will be considered a click, and it will add to the currentSelection .
source share