• Advertisement
Sign in to follow this  

Gui and DirectInput

This topic is 3991 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've done some google searches as well as read through a few tutorials that seemed relative to this on gamedev, but nothing helped me ;( Basically, I am trying to make a GUI and I've got a few things done. Next I',m trying to do is make some buttons in D3D9. The button: not so much a button idea as mouse input. I have a mouse device going but I dont know how to measure absolute coordinates. I know I can tack on the relative movement every frame, but that is all relative to the initial starting point of the mouse. How can I tell where mouse is actually clicking?

Share this post


Link to post
Share on other sites
Advertisement
You can set the cooperative level to exclusive and increment changes in position to the previous position, but this depends on if you want the device to be exclusive which is normally the case in full screen games.

[edit]added links
cooperative level
setting cooperative level determined by the window

[Edited by - dmail on March 19, 2007 6:24:33 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement