Ugh, DINPUT mouse...
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]
Uh, there''s documentation all over the place. Button0 is left, Button1 is right, Button2 is middle.
~CGameProgrammer( );
-- Post screenshots of your projects. There''s already 134 screenshot posts.
~CGameProgrammer( );
-- Post screenshots of your projects. There''s already 134 screenshot posts.
I''m sure they do; it would be on MSDN.
~CGameProgrammer( );
-- Post screenshots of your projects. There''s already 134 screenshot posts.
~CGameProgrammer( );
-- Post screenshots of your projects. There''s already 134 screenshot posts.
quoteing my original post "msdn doesnt specify WHICH BYTE CORRESPONDS TO WHICH BUTTON!!! "
i did search msdn, thats where i got the enumeration.....
i did search msdn, thats where i got the enumeration.....
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( );
-- Post screenshots of your projects. There's already 134 screenshot posts.
[edited by - CGameProgrammer on February 21, 2004 12:42:31 PM]
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( );
-- Post screenshots of your projects. There's already 134 screenshot posts.
[edited by - CGameProgrammer on February 21, 2004 12:42:31 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement