x52 and x52 pro saitek joysticks do not work in r5.

Questions / Announcements area for beta tests of Allegiance's future updates.
Spunkmeyer
Posts: 2013
Joined: Fri Jun 27, 2003 7:00 am
Location: Contact me regarding: CC, Slayer and AllegWiki.

Post by Spunkmeyer »

IT WORKS!!!!!!

Ok gotta setup and test.. awesome!


Want bigger games? Log on to play at the official game time: 9pmET/8pmCT/7pmMT/6pmPT every day of the week. Also Saturdays 8pm UTC.

Spunkmeyer
Posts: 2013
Joined: Fri Jun 27, 2003 7:00 am
Location: Contact me regarding: CC, Slayer and AllegWiki.

Post by Spunkmeyer »

Had to modify line 44 as follows, otherwise the throttle was reversed:
PPJ_SetAxis(joyID, 2, (1.25*z-20)) ;


Want bigger games? Log on to play at the official game time: 9pmET/8pmCT/7pmMT/6pmPT every day of the week. Also Saturdays 8pm UTC.

Wanderer
Posts: 14
Joined: Tue Feb 01, 2011 11:41 pm

Post by Wanderer »

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)) ;
Hmm, that's odd - I was only testing this in control panel, but it's completely the opposite for me.

If things are swapped, you probabably need to replace the entire throttle section with this

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)
    }
It will be tomorrow before I can test whether Alleg expects the opposite of the control panel properties dialog. If somebody can let me know before then, it would save me a couple of steps.
Spunkmeyer
Posts: 2013
Joined: Fri Jun 27, 2003 7:00 am
Location: Contact me regarding: CC, Slayer and AllegWiki.

Post by Spunkmeyer »

Control panel is fine, the reversal is only in Alleg. I didn't need to change anything else, just mapped the max/min keys to afterburner and back thrust. Works very nicely.. thanks!


Want bigger games? Log on to play at the official game time: 9pmET/8pmCT/7pmMT/6pmPT every day of the week. Also Saturdays 8pm UTC.

Achtung
Posts: 8
Joined: Sun Jun 11, 2006 7:00 am
Location: Australia

Post by Achtung »

Thank you Wanderer and Spunkmeyer,

Finally have my X52 Pro up and running. A few issues, I think buttons 27-29 are allocated to the mode switches on the pro, 29 appears constantly read in the controlpanel and messes with your keymapping until you turn it off. Is there anyway to may the joystick settings more sensitive as it doesn't respond very fast? If not oh well maybe the next release will allow us to go back to the saitek software.

Thanks Again

Achtung
I wish I spoke German!
Post Reply