Class ButtonConfig
Configuration class for adding custom inputs and custom key hints.
See for more information on Unity Input handling.
See for more information on Unity Input handling.
Inherited Members
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public class ButtonConfig
Properties
Name | Description |
---|---|
ActiveInCustomGUI | Should this button react on key presses when a custom GUI is open and requested to block input? Defaults to false . |
ActiveInGUI | Should this button react on key presses when a Valheim GUI is open? Defaults to false . |
Axis | Axis string this config should be bound to. Use special Axis "Mouse ScrollWheel" to display the scroll icon as the key hint. |
BlockOtherInputs | Should this button block all other inputs using the same key or button? Defaults to false .Warning: If set to true , all other input using the same key or axis is reset when queried via ZInput.
Make sure to gate your usage properly. |
Config | BepInEx configuration entry of a KeyCode that should be used. Overrides the Key value of this config. |
GamepadButton | GamepadButton this config should be bound to for gamepads. |
GamepadConfig | BepInEx configuration entry of a GamepadButton that should be used. Overrides the GamepadButton value of this config. |
Hint | Key hint text, overrides HintToken when set |
HintToken | Token for translating the key hint text. |
Inverted | Should the Axis value be inverted? |
Key | Unity KeyCode this config should be bound to. |
Name | Name of the config. Use this to react to the button press bound by this config. |
RepeatDelay | Delay until a constantly pressed key is considered "pressed" again. |
RepeatInterval | Interval in which the check timer for the repeat delay is decremented. |
Shortcut | BepInEx KeyboardShortcut this config should be bound to. |
ShortcutConfig | BepInEx configuration entry of a KeyCode that should be used. Overrides the Shortcut value of this config. |