[Bug 18424] Mac OS X Joystick support doesn't work

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Feb 1 04:55:35 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=18424

--- Comment #74 from david.dljunk at gmail.com 2013-02-01 04:55:35 CST ---
I think I may have figured out why Linux-wine can communicate with joysticks
through a winmm interface, but not OS X. Does the below seem logical?

Looking at the joystick code in dlls/winmm/joystick.c: in order to work it
opens up a driver and then uses driver commands for the rest of the code to
send commands to the winmm interface.

line 69:
static    BOOL JOY_LoadDriver(DWORD dwJoyID)
{
    if (dwJoyID >= MAXJOYSTICK)
    return FALSE;
    if (JOY_Sticks[dwJoyID].hDriver)
    return TRUE;

    JOY_Sticks[dwJoyID].hDriver = OpenDriverA("winejoystick.drv", 0, dwJoyID);
    return (JOY_Sticks[dwJoyID].hDriver != 0);
}

If you look at dlls/winejoystick.drv/joystick.c, the code is Linux only. An OS
X version would need to be written. Feasible?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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