Multiple fixes for joystick interface: * fix off-by-one error where wxJoystickEvent ZPosition was taken from rudder axis * correctly generate and post joystick movement events * check driver capabilities and events against axis and button count class limits * implement movement thresholds * add new interface to get axis position by index, allowing caller to iterate over axes rather than calling axis-specific functions * add new interface to get button position by index, rather than a bitfield of all buttons (will allow devices with >32 buttons) I will submit this upstream as well.
Created attachment 112489 [details, diff] Patch to fix joystick wxGTK interface
Created attachment 112490 [details] ebuild file for wxGTK joystick patch
When you have posted it upstream, please share links here then. Maybe I can even look into getting them included in 2.6.3.4, which I plan to help Robin Dunn test and roll as soon I become unbusy with job, so I can get various updates (including the crash fix for amule) in a tarball. (I have upstream CVS commit access). For upstream we'd love to have the patch apply to 2.8 branch and HEAD. For Gentoo purposes a 2.6 one too then, which I see you already have (and it might just work with newer ones too)
The patch applies cleanly to the 2.8.0 tarball, but I haven't had time to test it yet. I also need to test on Windows and document the two new wxJoystick member functions. I expect to get it submitted upstream today or tomorrow. I'll post here when I get it in. Frank
Submitted upstream as http://sourceforge.net/tracker/index.php?func=detail&aid=1678497&group_id=9863&atid=309863
Upstream patch is now in HEAD.
in that case we'll pick it up from there. thanks.