mouse move
q)i want to move my mouse with my directx/c++ program. How can i detect mouse movements so i can move the camera?
i have to move the camera not only left or right but up and down .
q) how can i click on an object with a mouse and get the 3d coordinates?
Quote:Original post by jagguy2WM_MOUSEMOVE, or raw input if you really need high resolution mouse input. Don't use DirectInput for it.
q)i want to move my mouse with my directx/c++ program. How can i detect mouse movements so i can move the camera?
i have to move the camera not only left or right but up and down.
Quote:Original post by jagguy2Google for "picking", or look at the "Pick" sample in the SDK.
q) how can i click on an object with a mouse and get the 3d coordinates?
Quote:Original post by jagguy2Yup. Your window gets sent WM_MOUSEMOVE messages, which contain the current position of the mouse pointer (in client coordinates). You might want to use SetCapture() to capture mouse input when it's not in your client area, depending on what you're doing.
ok can i simply detect mouse movement like a key input?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement