M_MSCLoader_Keybind_Add - piotrulos/MSCModLoader GitHub Wiki

Add(Mod, String, String, KeyCode) Method

Add a keybind.

Definition

Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.1.346

C#

public static <a href="T_MSCLoader_Keybind">Keybind</a> Add(
	<a href="T_MSCLoader_Mod">Mod</a> mod,
	string id,
	string name,
	KeyCode key
)

View Source

Parameters

  Mod
The instance of your mod.
  String
The ID of the Keybind (Used only once in your mod).
  String
The name of the Keybind that will be displayed.
  KeyCode
The KeyCode the user will press.

Return Value

Keybind
Keybind

See Also

Reference

Keybind Class
Add Overload
MSCLoader Namespace

⚠️ **GitHub.com Fallback** ⚠️