|
Author Topic:   Windows Multimedia joystick handling
Axe
Member
posted January 25, 2000 08:42 PM            
ok.. I ditche directinput.. Got the mouse and keyboard working great.. I got a joystick captured.. Now. My question relates to MM_JOY1BUTTONDOWN and MM_JOY1BUTTONUP messages..
the wParam of these messages contain which buttons are down. so you can use ((UINT) wParam & JOY_BUTTON1) to see which button the messages is sending about..
There are JOY_BUTTON1-JOY_BUTTON8.
Ok.. So I figured in the MM_JOYBUTTONUP I'd just check the JOY_BUTTONxCHG and work off that, but only JOY_BUTTON1CHG - JOY_BUTTON4CHG exist.. or so my compiler says.. basically what I want to know is a) am I going down the right path here, and b) how do I tell which button has been released if is 5 or greater? I may be going at this wrong.. help!!!!

IP:

Axe
Member
posted January 25, 2000 09:40 PM            
Well.. Since I was having so much trouble with using the MM_ messages, I just added a joyGetPos call in my main input loop and went from there. So I got the problem solved by doing away with the problem, but I'm still curious as to how you do it with the MM_ messages, if anyone cares to elaborate.

IP: