M_MSCLoader_Keybind_Add_1 - piotrulos/MSCModLoader GitHub Wiki

Add(Mod, String, String, KeyCode, 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,
	KeyCode modifier
)

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.
  KeyCode
The modifier KeyCode the user will have to press.

Return Value

Keybind
Keybind

See Also

Reference

Keybind Class
Add Overload
MSCLoader Namespace

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