Thanks! You're welcome CW! 
I've fixed the link in the first post btw. Still a ton of broken links out there I guess.

I've fixed the link in the first post btw. Still a ton of broken links out there I guess.

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: eri0o on Wed 18/10/2017 01:12:33
Wyz! The d-pad (POV) in my wired Xbox360 joystick doesn't work. Do you have any idea why?
Is there any possibility of releasing the joystick plugin source? I would like to play with maybe porting it to Linux.
Quote from: Radiant on Thu 19/10/2017 17:31:56
....maaaaybe you should find a different host for that
// Amount of movement that triggers it, play with this
// Find a middle ground that does not only work for your controller
#define JOY_THRESHOLD 8192
function WaitMouseKeyJoyAxes(int time, Joystick *j)
{
int buttons = j.buttons;
int p[] = new int [j.AxesCount];
int i = j.AxesCount;
while (i > 0)
{
i--;
p[i] = j.GetAxis(i);
}
while (time)
{
if ((j.buttons ^ buttons) & j.buttons)
return (1);
else
buttons = j.buttons;
i = j.AxesCount;
while (i > 0)
{
i--;
int axis = j.GetAxis(i);
int disp = axis - p[i];
if (disp < 0)
disp = 0 - disp;
p[i] = axis;
if (disp >= JOY_THRESHOLD)
return (1);
}
if (WaitMouseKey(1))
return (1);
if (time > 0)
time--;
}
return (0);
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.050 seconds with 16 queries.