Skip to content

M_MSCLoader_Keybind_Add

piotrulos edited this page Apr 7, 2023 · 3 revisions

Keybind.Add Method (Mod, String, String, KeyCode)

Add a keybind.

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

Syntax

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
Type: MSCLoader.Mod
The instance of your mod.
id
Type: System.String
The ID of the Keybind (Used only once in your mod).
name
Type: System.String
The name of the Keybind that will be displayed.
key
Type: KeyCode
The KeyCode the user will press.

Return Value

Type: Keybind
Keybind

See Also

Reference

Keybind Class
Add Overload
MSCLoader Namespace

Clone this wiki locally