Sign in to follow this  
Crazyfool

Gui and DirectInput

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this