Analog Throttle and Brakes on Keyboard for ATS

American Truck Simulator339 views9 favorites2 min readby VictrixUpdated 27 Apr, 2024View on Steam ↗

Locate your profile folder

  1. EXIT the game, if the game is still running
  2. Locate your profile folder in 'My Documents' (Usually it's on C:\Users\*yourusername*\Documents\American Truck Simulator). If you're using local save then head to 'profiles' folder, but if you're using steam-cloud save then go to 'steam_profiles' folder.
If you have multiple profiles then go launch the game and sign in to the profile that you wanna use the analog pedal, exit the game and then look for the subfolder in the profile folder which the date and time of the subfolder is equal with the time of you exiting the game.

Configuring the controls

  1. Locate 'controls.sii' and open it with any text editor.
  2. Locate the variable 'constant c_msens' and set the value to 1.350000. (Ideal if the "Steering Sensitivity" slider in the settings is in the default middle position)
    This value means how fast will you push the pedals. Adjust later for your needs.
  3. Locate the variable 'constant c_mousepedal' and set the value to 1.000000.
    This value means for the game to listen pedals position from the mouse input.
  4. Locate the variable 'constant c_mped_dz' and set the value to 0.050000.
    This value means the deadzone of the pedals. Adjust later for your needs.
  5. Locate the STRING variable 'mix mpedals'.
    Usually it will look like this: config_lines[297]: "mix mpedals `-mouse.rel_position.y?0 * c_msens`"
  6. Change the value of the mpedals with this code
    You can paste this line inside the ` ` of the mpedals variable: sel(keyboard.w?0, c_msens, 0) + sel(keyboard.s?0, -1*c_msens, 0) So it will look something like this: config_lines[297]: "mix mpedals `sel(keyboard.w?0, c_msens, 0) + sel(keyboard.s?0, -1*c_msens, 0)`"
    What this does is replace the signal of the mouse position with the signal of a keyboard button (which is W for throttle and S for the brake in this config). You can change the key to whatever key you like (change the w and s to your desired key).

    You can also change the value of how fast or slow you press the pedal in this config by giving the variable a multiplier float number (decimals).
    For example: config_lines[297]: "mix mpedals `sel(keyboard.w?0, 2*c_msens, 0) + sel(keyboard.s?0, -1.5*c_msens, 0)`" This will make the Throttle 2x more responsive and the Brakes 1.5x more responsive.
    Adjust later for your needs.

Save the 'controls.sii' config file and start the game!

This guide originally made by Scanreg in 2014 with some modifications

Also you can use this mod to remove the mouse HUD (not completely) to be more less distracting, it retains the pedal HUD so you know how much you "press" the pedal:
https://steamcommunity.com/sharedfiles/filedetails/?id=1688276252

This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.