Click or drag to resize
Keybindings Class
Class that allows mods to register keybindings. They can be changed by the user in the keymapper window and are automatically saved and loaded again.
Inheritance Hierarchy
SystemObject
  spaar.ModLoaderKeybindings

Namespace: spaar.ModLoader
Assembly: SpaarModLoader (in SpaarModLoader.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static class Keybindings

The Keybindings type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddKeybinding
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.
Public methodStatic memberGet
Gets the keybinding associated with the specified name. If the name is not a registered keybinding, an InvalidOperationException is thrown.
Top
Remarks
Keybindings consist of a modifier and a trigger. The modifier has to be held down while the trigger is pressed once in order for the keybinding to detect it was pressed. The modifier is usually something like Ctrl or Shift, while the trigger is often just one of the letter keys.
See Also