wxJoystick with more than 4 buttons. Unclear documentation. Topic is solved
-
- I live to help wx-kind
- Posts: 198
- Joined: Sat Oct 28, 2006 3:36 am
wxJoystick with more than 4 buttons. Unclear documentation.
Is the wxJoystick class able to send a wxJoystickEvent for more than 4 buttons? I’ve looked through the wxwidgets code and it seems that its being constrained by joySetCapture which only captures window messages (WM) for the first 4 buttons/2 joysticks. If the win api is so constrained, why doesn’t wxwidgets use a timer to poll with joyGetPosEx? That way everything works as expected. As is, the documentation is unclear because GetButtonState can access all the buttons but using event EVT_JOY_BUTTON_DOWN and company cannot. -maxinuruguay