dinput, wheel/joystick and richard burns rally

Christoph Frick frick at sc-networks.de
Mon Jan 8 06:11:13 CST 2007

On Sun, Jan 07, 2007 at 10:22:34PM +0200, Tuomo Kohvakka wrote:

> http://appdb.winehq.org/appview.php?iVersionId=5934&iTestingId=6382
> As shown there, joystick (that ofcourse really means the wheel :)
> isn't detected by the game with current wine. I decided to take a look
> at that, figuring that it might be fixable.

the problem here is somehow deeper within wine. we store a dataformat as
default with the device, that does not represent the informations sent
to the app. so when an app want to build its own data-format using the
infos there.

so the problem was actually fixed some time ago but the fix got lost
with a huge clean up session. so there is actually currently work
undergoing, that fixes the problem (see the mails about RBR before the

> &&
> (/* Then check if it accepts any instance id, and if not, if it matches 
> Wine's
>   * instance id.
>   */
> ((asked_format->rgodf[j].dwType & DIDFT_INSTANCEMASK) == 
> (DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType) == 0x00FF) || /* 
> This is mentionned in no DX docs, but it works fine - tested on WinXP */

imho this already does not make sense..

> (DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType) == 
> DIDFT_GETINSTANCE(format->wine_df->rgodf[i].dwType)))
>         &&
> Now, adding
> || ((asked_format->rgodf[j].dwType&0xff) == (format->wine_df->rgodf[i]. 
>   =>dwType&0xff))

... but then adding the next "magic" check is wrong. but this is a
gut-feeling and maybe there are already new problems introduced with the
recent patches. for my part i can at least say, that everythings is
working in WINE's head trunk - except RBR with the same problem as
before xmas.

for what i have seen Vitaliy has build the ground to finally make the
same patches for the joysticks as for keyboard and mouse?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20070108/cef8a462/attachment.pgp

More information about the wine-devel mailing list