Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 169843

Summary: x11-libs/wxGTK-2.6.3.3 - enhanced joystick support
Product: Gentoo Linux Reporter: Frank Szczerba <frank>
Component: New packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Status: RESOLVED UPSTREAM    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix joystick wxGTK interface
ebuild file for wxGTK joystick patch

Description Frank Szczerba 2007-03-07 22:29:08 UTC
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.
Comment 1 Frank Szczerba 2007-03-07 22:30:26 UTC
Created attachment 112489 [details, diff]
Patch to fix joystick wxGTK interface
Comment 2 Frank Szczerba 2007-03-07 22:31:34 UTC
Created attachment 112490 [details]
ebuild file for wxGTK joystick patch
Comment 3 Mart Raudsepp gentoo-dev 2007-03-08 04:05:26 UTC
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)
Comment 4 Frank Szczerba 2007-03-08 14:12:42 UTC
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
Comment 6 Frank Szczerba 2007-03-16 14:15:22 UTC
Upstream patch is now in HEAD.
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2007-10-14 08:28:21 UTC
in that case we'll pick it up from there.  thanks.