Joystick+added+2nd+USB+controller

---submitted November 2009, by RAF_Roy from Knegel's post at the SimHQ EAW forum: [] Knegel; for now EAW only could handle one stick and we thought that only the 1st game controller is active.
 * The possibility of a 2nd controller comes to EAW!!**

But some days ago Uriah pointed me to a problem he have. He use one Joystick for EAW and a other for a other flight sim, but always when he had the other USB stick plugged, only this one got used, no matter which stick got plugged in 1st.

So i took the 2nd USB stick i have and plugged it into my PC and i got the same result, like Uriah.

Now i had a look into the code and found that EAW1.28c not always use th 1st controller, rather always the last in the list!!

Ok, since i now could understand how it work, i was able to implement some EAW.ini values, where we can define which stick get used for rudder, throttle and Stick(X/Y axe).

Now i can use the Stick(X/Y) of controller1 and Rudder and Throttle of controller2, or only Rudder of controller2 or all the other way around, just like i want.

btw, maybe my initial explanation wasnt very clear:

We now can use external rudder pedals, listed as additional controller in Windows.

Also the USB keyboard problem some had should be solved with this.

-- MrJelly; I just tested it and it worked

My ini settings: [CONTROLS] Force Feedback=0 Force Feedback Gain=0 Flight Sensitivity=0.560000 Camera Sensitivity=5.000000 Swap Mouse X=0 Swap Mouse Y=0 Windows Joystick=1 JoystickDeadZone=4

=
=============== Device Port1=1 Device Port2=2 Rudder Device=1 Throttle Device=2 Stick Device=1

I have both my trusty Sidewinder and my not so trusty Logitech J/S connected Everything but the throttle was controlled by the Sidewinder The throttle was controlled by the Logitech, and viewing the engine revs in the cockpit confirmed this.

This may bring a few folks back to EAW who have not been able to use their setups with separate rudder pedals. -- Uriah; Is there a new exe needed to make this work? I tried adding the new variables Jell listed and added them to my eaw.ini and tried several different settings. No luck. Control went to my CH Throttle Quadrant and not my MS FF2 joy stick, except for rudder. lol. --MrJelly; Here is the exe, but now I am having problems, and a little more work may need to be done.

@http://www.users.on.net/pam_biddell/JoinMayhem03.zip

As an early Christmas present I bought some Saitek rudder pedals

These ini setting allow me to use a joystick and the new pedals:

[CONTROLS] Force Feedback=0 Force Feedback Gain=0 Flight Sensitivity=0.560000 Camera Sensitivity=5.000000 Swap Mouse X=0 Swap Mouse Y=0 Windows Joystick=1 JoystickDeadZone=4

=
=============== Device Port1=1 Device Port2=2 Rudder Device=1 Throttle Device=2 Stick Device=2

..but although the joystick works for throttle, ailerons and elevator, the buttons (including fire) and the POV hat positions do not work.

Anyhow any feedback will be welcome, so try it anyway.

But this works

[CONTROLS] Force Feedback=0 Force Feedback Gain=0 Flight Sensitivity=0.560000 Camera Sensitivity=5.000000 Swap Mouse X=0 Swap Mouse Y=0 Windows Joystick=1 JoystickDeadZone=4

=
=============== Device Port1=2 Device Port2=1 Rudder Device=1 Throttle Device=2 Stick Device=2

-- Uriah; Good news, that worked well.

Windows Joystick=1 JoystickDeadZone=4

=
=============== Device Port1=1 Device Port2=2

So now with this exec setup I will no longer have to reboot if I forget and have a second control plugged in. I was hoping that the buttons on my 2nd control would work just as I set keyboard keys but no go on that.

BIG THANKS Knegel.

-- Hi Uriah,

if your 2nd controller have a sticksoftware, you can assign keyboard keys to it, then you can use them in EAW.

But why would you use two Joysticks for EAW??

Greetings,

Knegel btw if you set this:

Device Port1=2 Device Port2=1 Rudder Device=2 Throttle Device=2 Stick Device=2

The 2nd controller´s key´s work in EAW.

Greetings,

Knegel

---