[Bug 48799] HOTAS kit Saitek X52 Pro doesn't show all buttons

WineHQ Bugzilla wine-bugs at winehq.org
Tue Mar 24 08:06:02 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=48799

Olivier F. R. Dierick <o.dierick at piezo-forte.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |o.dierick at piezo-forte.be

--- Comment #5 from Olivier F. R. Dierick <o.dierick at piezo-forte.be> ---
Hello,

I found this in git/dlls/winejoystick.drv/joystick_{linux,osx}.c:

--- code ---
        /* complete 95 structure */
        caps->wRmin = 0;
        caps->wRmax = 0xFFFF;
        caps->wUmin = 0;
        caps->wUmax = 0xFFFF;
        caps->wVmin = 0;
        caps->wVmax = 0xFFFF;
        caps->wMaxAxes = 6; /* same as MS Joystick Driver */
        caps->wNumAxes = 0;
        caps->wMaxButtons = 32; /* same as MS Joystick Driver */
        caps->szRegKey[0] = 0;
        caps->szOEMVxD[0] = 0;
        caps->wCaps = 0;
--- end code ---

I have no expertise in joystick code, but I think the default behavior is to
wrap the extra buttons/axes around. I don't know what will happen if this was
patched to 10 axes and 40 buttons.

Wine should not crash, though, so if it does, please attach a
WINEDEBUG=+joystick,+dinput,+xinput debug trace.
Instructions to get a debug trace can be found at point 10.1.2 there:
https://wiki.winehq.org/FAQ#get_log

Regards.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list