I need to know how to detect a mouse click in a console application (not win forms!). The way I'm trying to do it now is not working.
static void Main ( string [ ] args ) {
while(true){
if (Mouse.LeftButton == MouseButtonState.Pressed){
Console.WriteLine("Left mouse button was pressed");
}
}
}