Clicking and console

I've seen some apps made in console, that used mouse clicks.

How could I do that in my console app? Is there any simple code just to get the x/y coordinate of mouse click when it happens?
This is not possible with standard C++ functions. You need to use a library like ncurses to do it.
You can use windows API (if you are in windows). You can use this,
http://theprogrammersdiary.blogspot.com/2011/12/mouse-handling-in-console-console-is.html
well thanks for this c example, but isn't there a simpler way to achieve the same? Oh and i forgot to mention, it only needs to run on windows, so if anyone knows some platform based solution, please go ahead!
That is an astonishingly simple windows based solution.
ok, thanks for letting me know!
Topic archived. No new replies allowed.