M_MSCLoader_Keybind_Add_3 - piotrulos/MSCModLoader GitHub Wiki

Add(String, String, KeyCode, KeyCode) Method

Add a keybind with modifier.

Definition

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

C#

public static <a href="T_MSCLoader_SettingsKeybind">SettingsKeybind</a> Add(
	string id,
	string name,
	KeyCode key,
	KeyCode modifier
)

View Source

Parameters

  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

SettingsKeybind
SettingsKeybind

See Also

Reference

Keybind Class
Add Overload
MSCLoader Namespace

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