In my MVVM application, I have a Direct3d rendering window that shows a bunch of 3d grids in the scene. In this rendering window, I want to be able to click one of these three-dimensional grids in the scene and move it by following the mouse pointer. This is typical 3D editor material that moves the grid along the screen. Therefore, I need to get the current mouse position, preferably relative to the Direct3d rendering window.
What is the way to do this?
Thanks!
Change: a change in wording, as it was too general and confused.
source
share