I have a project with a lot of mouse events.
I need to do different things depending whether the mouse left button is clicked or it is pressed and kept pressed. The same for the right mouse button.
I was unable to find any example that shows how to check a mouse button held pressed.
if (e.Button == MouseButtons.Right)
{
// Shows that the right mouse was pressed.
// It does not show whether it has also been kept pressed.
}
In the same way I check which mouse button is pressed I need a Boolean that shows that it is also kept pressed. I have no idea how to go about solving this.
Any help would be much appreciated.
Thank you in advance.