Re: Always set DIOBJECTDATAFORMAT.pguid to GUID_Button for joystick buttons
20 Sep
2007
20 Sep
'07
7:51 p.m.
On 9/20/07, Antonio Cuni <anto.cuni(a)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(a)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
6654
Age (days ago)
6654
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Klehm