About this mod
Lets you set a custom button, key, or axis for each key and button used in the game.
- Permissions and credits
- Changelogs
- Donations
Note: I don't actually have a controller, please let me know if this works as expected.
This mod overwrites settings set using the in-game Settings menu. They will be reset to default when you run this mod the first time.
Basic Usage
Each config setting uses the following syntax:
<KeyCodeOrAxisName>,<RepeatDelay>,<RepeatInterval>,<Inverted>
Only KeyCodeOrAxisName is required, the rest are optional.
Basically, it is easiest to follow the default config formats, just swapping entries as you like.
To return to default, just remove this mod's config file and let it be recreated.
Detailed Explanation
KeyCodeOrAxisName
There are two types of input: key code and axis.
Most input are key codes, and you can get a complete list of key code names by typing dump keycodes into the in-game console (F5), which will output them to the Player.log file.
Axis refers to certain controller inputs like D-pad, etc. You can see which axis is set to which button name in the default config file (created when you start the game with this mod).
RepeatDelay
Floating-point decimal used for keys that are expected to be held down.
RepeatInterval
Floating-point decimal used for keys that are expected to be held down.
Inverted
Used for certain controller inputs where two buttons (e.g. left and right triggers) share the same axis. See the default config for places where this is used.
Config
A config file BepInEx/config/aedenthorn.ControllerButtonSwitch.cfg is created after running the game once with this mod.
You can adjust the config values by editing this file using a text editor or in-game using the Config Manager.
To reload the config from the config file, type controllerbuttonswitch reset into the game's console (F5).
Technical
To install this mod, the easiest way is to just use Vortex, the Nexus Mods mod manager. It should take care of all dependencies.
To install manually, place the dll file in the BepInEx/plugins folder. You will need BepInEx.
Code is at https://github.com/aedenthorn/ValheimMods.
If you want to complain or ask for help or help me test my mods, you can visit my Discord server.
Click here for a list of all my mods for Valheim.