I'm using Direct3D in C#, and I was wondering how I can get the position of the mouse cursor in the 3d space. For example, the camera is looking straight down on a map. Its position is 0,0,30, which is at the top left corner of the map. I can get the position by making my game fullscreen and using c# to get the position. But I dont want fullscreen. And if the camera moves 10 pixels to the right, then when the mouse is at the top left corner of the window, its position should be 10,0.
Anyone know how I can do this?