Joystick axis configuration (2020)

Any issues with the XWAU or X-Wing Alliance? Please let us know here!
Post Reply

Joystick axis configuration (2020)

Choum
Cadet 4th Class
Posts: 24
Joined: Fri Mar 04, 2016 3:34 pm

Post by Choum » Mon Nov 30, 2020 8:40 am

Hello all,

I need a little more information about the new joystick config and axis configuration, especially the rudder.

I have a joystick with 6 axes (X, Y , Z , D, Rx, Ry) and a throttle with 5 Axis (X, Y, Rx, Ry, Rz).

In the buttons tab of the config toosl : I see joy0 (joystick) and joy1 (Throttle), both are limited to 32buttons which I suppose is the maximum that this game support.

In the settings tab there's multiple option :
What the enable small movement exactly joystick do, is this something to about deadzone ?
You can also set the controller used for joystick and throttle which I supposed is the JoyX Number you see in buttons tabs.

But how do you define which axis is used for rudder ?
In my case If I activate the ingame rudder option, the game will automatically use the D axis which is a brake axis (0 to 100), instead of the Z axis (-100 to 100).
So the ship will rotate infinitely until I push the axis to 50% (0).

Note: I use the hook_joystick_ff_WIP.zip avalaible in other topic.

User avatar
JeremyaFr
XWAU Member
Posts: 3989
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Nov 30, 2020 5:14 pm

Hello,
The controler index starts at 0. The axis index starts at 0.
Choum wrote:
Mon Nov 30, 2020 8:40 am
I have a joystick with 6 axes (X, Y , Z , D, Rx, Ry)
[...]
But how do you define which axis is used for rudder ?
In my case If I activate the ingame rudder option, the game will automatically use the D axis which is a brake axis (0 to 100), instead of the Z axis (-100 to 100).
The default axis index for the rudder is 3. In your case, it corresponds to axis D. To select the Z axis, set axis index to 2. (0 is X, 1 is Y, 2 is Z, 3 is D, 4 is Rx, 5 is Ry).

Choum
Cadet 4th Class
Posts: 24
Joined: Fri Mar 04, 2016 3:34 pm

Post by Choum » Tue Dec 01, 2020 7:04 pm

Where is this settings ?
In the tools itself I do not see it (only the throlle axis index)
and nothing also in the joystickconfig.txt.
; Select a joystick with force feedback
; 0 to select the first device
; -1 to select the last device
; integer value to select a device by its index
JoystickFFDeviceIndex = 0

; Enable small joystick movement
; 0 to disable small movement
; 1 to enable small movement
EnableSmallMovement = 1

; Select the controller used for the main axis and buttons
MainControllerIndex = 0

; Select the controller used for throttle
ThrottleControllerIndex = 1

; Select the controller axis used for throttle
ThrottleControllerAxisIndex = 0

; Use the POV as regular buttons
; 0 to continious movement
; 1 to enable regular buttons
UsePovControllerAsButtons = 0

User avatar
JeremyaFr
XWAU Member
Posts: 3989
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Dec 01, 2020 7:44 pm

The latest WIP version is here:
viewtopic.php?p=177043#p177043

Choum
Cadet 4th Class
Posts: 24
Joined: Fri Mar 04, 2016 3:34 pm

Post by Choum » Tue Dec 01, 2020 8:02 pm

Perfect.

Only problem remaining is that there's no possibility to invert throttle axis.
My throttle is inverted (I need to push the throttle to stop)

User avatar
JeremyaFr
XWAU Member
Posts: 3989
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Dec 01, 2020 9:41 pm

Hello,
I've uploaded a WIP version of the hook.

See viewtopic.php?p=177078#p177078

You can now invert the throttle or rudder axis.

Choum
Cadet 4th Class
Posts: 24
Joined: Fri Mar 04, 2016 3:34 pm

Post by Choum » Wed Dec 02, 2020 6:33 pm

perfect with this version.

Knight26
Ensign
Posts: 294
Joined: Fri Nov 17, 2000 12:01 am

Post by Knight26 » Wed Dec 02, 2020 11:23 pm

I am running an X56 HOTAS, and Saitek Rudder through vjoy to make it appear as a single controller, and cannot figure out how to set it up in the new configurator. I go into a forward left dive/roll and can't get out of it. I am also having a devil of a time figuring out how to configure all the buttons in this new version. Any help or tips appreciated. I have set the vjoy device as the default for older games in windows (after many crashes of the control panel, ugh).
S. Schauer<BR>Flight Test Engineer<BR>C-17 DOOE, 418th FLTS<BR>AFFTC, Edwards AFB

eesnowgoose
Recruit
Posts: 5
Joined: Wed Nov 04, 2020 2:27 am

Post by eesnowgoose » Mon Dec 14, 2020 2:10 am

I too am having an issue with X56 HOTAS. When both joystick and throttle are connected, there is a y axis rotation issue. The ship hits the hangar floor and explodes. I tried the new joystick hooks file. If I disconnect the throttle, everything is fine. Is it possible for someone, who figured this out, to provide set up instructions tailored for beginners? Preferably a youtube video. I am seeing the same question in different threads.

May I also ask what axis index values mean? For example, controller index 0 axis index 0 vs controller index 0 axis index 1? Which one is x, y, z axis?

User avatar
JeremyaFr
XWAU Member
Posts: 3989
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Dec 14, 2020 5:29 pm

  • axis index 0 is X axis
  • axis index 1 is Y axis
  • axis index 2 is Z axis
  • axis index 3 is R axis
  • axis index 4 is U axis
  • axis index 5 is V axis

eesnowgoose
Recruit
Posts: 5
Joined: Wed Nov 04, 2020 2:27 am

Post by eesnowgoose » Mon Dec 14, 2020 9:14 pm

Thank you very much!

Post Reply