Euro Truck Simulator 2

Euro Truck Simulator 2

Not enough ratings
Creating Modifier Keys for Wheels
By Jadeonking and 2 collaborators
Most of you will know that the game doesnt really allow for Modifiers normally (a key such as shift, ctrl, or alt in conjuction with another key)
however there is a way to do so by editing the control.sii
   
Award
Favorite
Favorited
Unfavorite
Finding Button Syntax
To find the button name, the best way would be going into the game and just set each button to the camera section which usually is the number row, then finding the syntax or button name for each command set in control.sii.

D-Pad
joy.pov1_left?0
joy.pov1_right?0
joy.pov1_up?0
joy.pov1_down?0


Once you understand the contents of this section move on to the next!
Setting Modifiers
First things first, we have to figure out which buttons we want to use as the "any_shift" "any_alt" "any_ctrl". Granted we don't need to set up all 3, we only need what we will be using. In my case I'm using shift and alt.

You will need to find the control.sii file to perform these edits. The picture below also shows the location of this file which may also have multiple random strings inside the profiles folder if you have more than one profile.



You will notice that I have joy.b6?0 and joy.b5?0 set as my any_shift and any_alt. What this will do is make it so anytime these buttons (which are the paddles on the G920 btw) act as a shift and alt button.

Once you have determined which buttons you want as your modifiers, set them up in the control.sii as shown and we can move on to the next section!
Setting Keybinds
Assuming you have read the first section, you will know what syntax you need for your keybinds.



Now using any_shift or any_alt in conjunction with the buttons you want to keybind. If we refer to the above picture I have all cruise controls set to the same button. However you may notice in pink that I have !any_shift and !any_alt set for cruise control.

The reason for this is that "!" basically tells the game to ignore this keypress.

If we turn our attention to the lines in green you will notice I have any_shift set to be ignored the reason for this is a found a conflict when activating the hazard lights when I turned them off it would activate the right blinkers so far it is the only conflict I have found

If you are a VR user move to the next section for an explanation about "mix headreset.
Headset Reposition For VR
As I am also a VR user, the ability to use modifier keys on wheels or even gamepads is an absolute must which is partially why this guide even exists.

"mix headreset `any_shift & joy.b11?0`"

This line will allow you to reposition the headset based on the keybind set, it is normally f12 which is terrible for VR especially when you include having to position for your wheel, pedals, and shifter in the real world.
Conclusion
It is my hope that this guide has helped some people be able to enjoy the game more by having keybinding freedom. I tried my best to make the guide as easy as it could be to follow. Enjoy!
2 Comments
Arc May 14, 2023 @ 1:33pm 
Thanks for the guide !

For some reason it is nigh impossible to find this info anywhere else and the game does not have UI support for it for yet another inexplicable reason.
Patola [Linux] Aug 30, 2020 @ 8:06am 
Your tutorial is wrong about "!". It does not make the game "ignore" anything. It negates the condition. So, for example, (!any_shift & joy.pov1_right?0) will only trigger if [/i]no shift key is pressed[/i].