Always set DIOBJECTDATAFORMAT.pguid to GUID_Button for joystick buttons

John Klehm xixsimplicityxix at gmail.com
Thu Sep 20 19:51:42 CDT 2007


On 9/20/07, Antonio Cuni <anto.cuni at gmail.com> wrote:
> At least one game (Pro Evolution Soccer 6) rely on the pguid field of
> the DIOBJECTDATAFORMAT struct to respond to joystick button's events.
> Setting pguid to GUID_Button solves the problem.
>
> 2007-09-20  Antonio Cuni <anto.cuni at gmail.com>
>
>         * dlls/dinput/joystick_linux.c,
>            dlls/dinput/joystick_linuxinput.c
>         Always set DIOBJECTDATAFORMAT.pguid to GUID_Button for
>          joystick buttons
>
>
> +        df->rgodf[idx].pguid = &GUID_Button; // some games require the GUID to be > +

> df->rgodf[idx].pguid = &GUID_Button; // some games require the GUID to be GUID_Button
>

You need to use C style comments /* */

Regards =),
--John Klehm



More information about the wine-devel mailing list