Bind Strafe to your joystick hat

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

NewtSoup
Posts: 1420
Joined: Wed, 16. Nov 05, 13:33
x4

Bind Strafe to your joystick hat

Post by NewtSoup »

I wanted to bind strage to the POV hat on my joystick as I used to have in X3:R/TC/AP and came up with this -

Try adding the following lines to

C:\Users\<username>\Documents\Egosoft\X Rebirth\<some_number>\inputmap.xml

(make a backup first)

Code: Select all

<state id="INPUT_STATE_STRAFE_LEFT" source="INPUT_SOURCE_JOYBUTTONS" code="INPUT_XBUTTON_DPAD_LEFT"/>
   
<state id="INPUT_STATE_STRAFE_RIGHT" source="INPUT_SOURCE_JOYBUTTONS" code="INPUT_XBUTTON_DPAD_RIGHT"/>
   
<state id="INPUT_STATE_STRAFE_UP" source="INPUT_SOURCE_JOYBUTTONS" code="INPUT_XBUTTON_DPAD_UP"/>
   
<state id="INPUT_STATE_STRAFE_DOWN" source="INPUT_SOURCE_JOYBUTTONS" code="INPUT_XBUTTON_DPAD_DOWN"/>
Works for me on a Thrustmaster Hotas T-Flight X stick. Hope it works for you.

Actually does this count as a mod? :D
Last edited by NewtSoup on Tue, 3. Dec 13, 09:26, edited 1 time in total.
I am a rock in the wind, watch how I plummet!
Gamer Girl since 1981 Mistress of Heavy Landings since 1984 (BBC-B Elite)

Corei7 7700, 32GB Ram, MSI RX6700XT, Sidewinder FFB2, Big Linux
Thurmonator
Posts: 205
Joined: Thu, 4. Dec 03, 21:07
x2

Post by Thurmonator »

COuld you make it a mod, like the other extensions?

Where is the inputmap.xml file?

Do I need the CAT extractor to do this? Which CAT is it in?

Thanks
BlueWulv
Posts: 238
Joined: Sat, 7. Feb 04, 17:06
x4

Post by BlueWulv »

It is located next to your savegame folder.
Vim Razz
Posts: 1842
Joined: Tue, 2. Nov 10, 02:20
x4

Post by Vim Razz »

I presume you're doing this to the copy of imputmaps.xml file in your ..\my documents\egosoft\x rebirth\(numberwhatever)\ directory?
NewtSoup
Posts: 1420
Joined: Wed, 16. Nov 05, 13:33
x4

Post by NewtSoup »

yes.. sorry I should have been more specific

Im doing ths to

C:\Users\<username>\Documents\Egosoft\X Rebirth\<some_number>\inputmap.xml

(of which I made a backup first)

I don't think this needs to be in the the form of an extension it's such an easy copy paste.
I am a rock in the wind, watch how I plummet!
Gamer Girl since 1981 Mistress of Heavy Landings since 1984 (BBC-B Elite)

Corei7 7700, 32GB Ram, MSI RX6700XT, Sidewinder FFB2, Big Linux
Thurmonator
Posts: 205
Joined: Thu, 4. Dec 03, 21:07
x2

Post by Thurmonator »

Thank you so much...Been waiting for this since release.

This is a huge improvement. I knew it could be done. And only four simple lines.

Egosoft...these four lines should have been in there to begin with. It would have been so refreshing to plug in the joystick and have it automatically strafe with the POV hatswitch. Especially when cockpit POV is not a feature.

I can't believe that none of the testers or developers wanted such a useful function for their testing joysticks...that they didnt add the four lines themselves.

Such a simple four line fix that would have added like 10% to most reviewers scores for the game.

Didn't they ever realize how many people would want to use joysticks in a spaceflight sim?

It's like egosoft mandated all the testers use 360 controllers or something.


Anyhow, thanks for the great fix. Now I have more of a reason to have the sidewinder engine.

Return to “X Rebirth - Scripts and Modding”