Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Ademan555

Ugh, DINPUT mouse...

This topic is 5258 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

Ok, im implementing mouse in dinput, but... i hit a "bump", msdn doesnt specify WHICH BYTE CORRESPONDS TO WHICH BUTTON!!! Any idea what they are? im goign to search theyre key enumeration in hopes taht its covered there... but well see, but anyways if anyone knows thatd be great found this: "typedef enum { DIMOFS_BUTTON0, DIMOFS_BUTTON1, DIMOFS_BUTTON2, DIMOFS_BUTTON3, DIMOFS_BUTTON4, DIMOFS_BUTTON5, DIMOFS_BUTTON6, DIMOFS_BUTTON7, DIMOFS_X, DIMOFS_Y, DIMOFS_Z } Mouse Device; Constants DIMOFS_BUTTON0 DIMOFS_BUTTON1 DIMOFS_BUTTON2 DIMOFS_BUTTON3 " thanks microsoft... helps a ton... [edited by - Ademan555 on February 21, 2004 2:47:26 AM]

Share this post


Link to post
Share on other sites
Advertisement
quoteing my original post "msdn doesnt specify WHICH BYTE CORRESPONDS TO WHICH BUTTON!!! "

i did search msdn, thats where i got the enumeration.....

Share this post


Link to post
Share on other sites
It is on MSDN, and in fact it appears I'm wrong. My wrapper used button0 for left and I assumed DirectInput did, but actually Button0 is right and Button1 is left... according to the comments on this MSDN tutorial.

EDIT: Actually my code is totally different from this... I guess DirectX9 does input much differently. Apparently my code uses the DirectX5 version of DirectInput, and in it, rgbButtons[0] is the left button, [1] is right, etc.

~CGameProgrammer( );

Screenshots of your games or desktop captures -- Post screenshots of your projects. There's already 134 screenshot posts.

[edited by - CGameProgrammer on February 21, 2004 12:42:31 PM]

Share this post


Link to post
Share on other sites
Oh, ur right, thanx... i guess i should look at the tutorials too, ive never done that before, i only look at the reference... guess i know better now, thanx again

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!