[7.5 b2] Joystick Button 9 not working properly in map

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

Rei Ayanami
Posts: 3354
Joined: Wed, 6. Nov 02, 20:31
x4

[7.5 b2] Joystick Button 9 not working properly in map

Post by Rei Ayanami »

Version : 7.5 beta 2
Language : English

Unmodified game
Gamestart : Queen's Herald

Hardware :
OS : Windows 10
CPU : i7-8700k
GPU : Nvidia GTX 1080
RAM : 48 GB
Game installed on SSD

Controller:
Gladiator NXT Evo R Premium joystick (Set as Joystick 1)
Thrustmaster TWCS throttle (Set as Joystick 2)

For joystick button reference, I will be using this image.
Problem : I'm using the directional thumbstick A3 (actions 6~10) to navigate menus (main menu, map menu, station menu, etc).
Used button configuration :
6 : Up
7 : Right
8 : Down
9 : Left
However button 9 (menu go left), despite being correctly assigned and working properly in any other part of the game, does not work as expected when the map is open.
Instead button 9 always will always toggle map rotation/panning mode. This probably has something to do with the following entry in the inputmap:xml:

Code: Select all

<state id="INPUT_STATE_MAP_PAN_TO_ROTATE" source="INPUT_SOURCE_JOYBUTTONS" toggle="1" code="INPUT_XBUTTON_LEFT_THUMB"/>
I never used a gamepad in X4, but I think XBox gamepads are using the left thumbstick press for this rotate<->pan toggle, so I guess button 9 is that left thumbstick on a gamepad.

My inputmap.xml also has this as an entry

Code: Select all

<state id="INPUT_STATE_WIDGET_SCROLL_LEFT" source="INPUT_SOURCE_JOYBUTTONS" code="INPUT_XBUTTON_LEFT_THUMB"/>
which is the correct control functionality that I want to use. You can see that both entries use the "INPUT_XBUTTON_LEFT_THUMB" code.

I think when reassigning button 9, the former entry "INPUT_STATE_MAP_PAN_TO_ROTATE" does not get removed from the input map, so when the map is open, the game checks for "INPUT_STATE_MAP_PAN_TO_ROTATE" first, so it eats the input, never allowing button 9 to do anything else while the map is open.

I just commented out the problem line to

Code: Select all

<!-- state id="INPUT_STATE_MAP_PAN_TO_ROTATE" source="INPUT_SOURCE_JOYBUTTONS" toggle="1" code="INPUT_XBUTTON_LEFT_THUMB" -->
and button 9 works now properly as I assigned it in the controls config menu.

Bug fix suggestion : Rebinding button 9 for the Menu controls should clear state id="INPUT_STATE_MAP_PAN_TO_ROTATE"-entry (or, for that matter, any code="INPUT_XBUTTON_LEFT_THUMB" assignment of menu controls entries) in the inputmap.xml

Return to “X4: Foundations - Technical Support”