Click or drag to resize
KeybindingsAddKeybinding Method
Registers a new keybinding with the specified name and default value. If the keybinding does already exist, possibly because it was loaded from configuration automatically, the default value is ignored and the existing Key is returned instead.

Namespace: spaar.ModLoader
Assembly: SpaarModLoader (in SpaarModLoader.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Key AddKeybinding(
	string name,
	Key defaultBinding
)

Parameters

name
Type: SystemString
Name of the keybinding
defaultBinding
Type: spaar.ModLoaderKey
Default value of the keybinding

Return Value

Type: Key
The added keybinding
See Also