Answer the question
In order to leave comments, you need to log in
How can I get the mouse button state in a console application?
It does not suit me
if ((Control.MouseButtons & MouseButtons.Left) == MouseButtons.Left)
{
System.Diagnostics.Debug.WriteLine("Left mouse down");
}
Mouse.LeftButton == MouseButtonState.Pressed
Answer the question
In order to leave comments, you need to log in
because i need to know this globally even when app is minimized
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question