wxJoystick with more than 4 buttons. Unclear documentation. Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
maxinuruguay
I live to help wx-kind
I live to help wx-kind
Posts: 198
Joined: Sat Oct 28, 2006 3:36 am

wxJoystick with more than 4 buttons. Unclear documentation.

Post by maxinuruguay » Thu Mar 29, 2007 9:34 pm

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

zhouhao
Earned some good credits
Earned some good credits
Posts: 144
Joined: Tue Dec 06, 2005 7:02 am

Post by zhouhao » Fri Mar 30, 2007 3:05 pm

Beside 4 buttons, wxWidgets supports x,y button. But it doesn't support other buttons.

Post Reply