 | 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.ModLoaderAssembly: SpaarModLoader (in SpaarModLoader.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic 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:
KeyThe added keybinding
See Also