Posted: Sun Feb 06, 2011 1:35 am
IT WORKS!!!!!!
Ok gotta setup and test.. awesome!
Ok gotta setup and test.. awesome!
Space battles since 2000
https://www.freeallegiance.org/forums/
Hmm, that's odd - I was only testing this in control panel, but it's completely the opposite for me.Spunkmeyer wrote:QUOTE (Spunkmeyer @ Feb 5 2011, 08:17 PM) Had to modify line 44 as follows, otherwise the throttle was reversed:
PPJ_SetAxis(joyID, 2, (1.25*z-20)) ;
Code: Select all
if (Z > 95)
{
PPJ_SetButton(joyID, 25,1)
PPJ_SetButton(joyID, 24,0)
PPJ_SetAxis(joyID, 2,100)
}
if (Z > 90) and (Z <= 95)
{
PPJ_SetButton(joyID, 25,0)
PPJ_SetButton(joyID, 24,0)
PPJ_SetAxis(joyID, 2, 100)
}
if (Z >= 10) and (Z <= 90)
{
;~ listvars
;~ pause
PPJ_SetButton(joyID, 24,0)
PPJ_SetButton(joyID, 25,0)
PPJ_SetAxis(joyID, 2, ((1.25)*(Z-10)));this maps Z:10> throt:100, Z:50 => throt:50, Z:90 => throt:0
}
if (Z >=5) and (Z < 10)
{
PPJ_SetButton(joyID, 24,0)
PPJ_SetButton(joyID, 25,0)
PPJ_SetAxis(joyID, 2, 0)
}
if (Z < 5)
{
PPJ_SetButton(joyID, 24,1)
PPJ_SetButton(joyID, 25,0)
PPJ_SetAxis(joyID, 2, 0)
}