Player movement with mouse?

So I’m trying to create a game where the player moves their character by left-clicking or right-clicking somewhere on the terrain. What’s the easiest or most effective way to get position from mouse-clicks, is there any good guides out there?

You can examine the source code project of the , which will give you an idea how to implement it.

How to get the coordinates.