Bug in .14 gfxlib

Windows specific questions.
Post Reply
SJ Zero
Posts: 139
Joined: Jun 19, 2005 4:12

Bug in .14 gfxlib

Post by SJ Zero »

in /win32/libfb_gfx_joystick.c in the gfxlib:

Code: Select all

	*a1 = CALCPOS(info.dwXpos, j->caps.wXmin, j->caps.wXmax);
	*a2 = CALCPOS(info.dwYpos, j->caps.wYmin, j->caps.wYmax);
	if (j->caps.wCaps & JOYCAPS_HASZ)
		*a3 = CALCPOS(info.dwZpos, j->caps.wZmin, j->caps.wZmax);
	if (j->caps.wCaps & JOYCAPS_HASR)
		*a4 = CALCPOS(info.dwRpos, j->caps.wRmin, j->caps.wRmax);
	if (j->caps.wCaps & JOYCAPS_HASU)
		*a5 = CALCPOS(info.dwUpos, j->caps.wUmin, j->caps.wUmax);
	if (j->caps.wCaps & JOYCAPS_HASV)
		*a5 = CALCPOS(info.dwVpos, j->caps.wVmin, j->caps.wVmax);
	*buttons = info.dwButtons;
That last one is supposed to be a6, right?
lillo
Site Admin
Posts: 447
Joined: May 27, 2005 8:00
Location: Rome, Italy
Contact:

Post by lillo »

Right... :P

Fixed in CVS, sorry for the inconvenience.
SJ Zero
Posts: 139
Joined: Jun 19, 2005 4:12

Post by SJ Zero »

Actually, I was just looking at the code to write the docs for it and noticed that it was doing that. :)
Post Reply