Is there any way to get the mouse click event / position in c#.
I am implementing a n-puzzle in the console with a ascii image, and i wanted to know if there is a way to know where the user is click on the ascii image.
Yes you can using mouse attributes. There is mouse move, mouse blah blah and all. There is one specific for a coordinates. You should be able to do that pretty easily.


Thanks for your answer. I’m really a csharp noob (never worked on it before today) do you mind giving me a ressource or code example ?
Maybe this works for you:
migueldeicaza/gui.cs: Console-based user interface toolkit for .NET applications. (github.com)
C# devs
null reference exceptions

source