-
-
Notifications
You must be signed in to change notification settings - Fork 55
T_MSCLoader_Keybind
piotrulos edited this page Apr 7, 2023
·
4 revisions
Add easily rebindable keybinds.
System.Object
MSCLoader.Keybind
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.2.11.286
C#
public class Keybind
View Source
The Keybind type exposes the following members.
Name | Description | |
---|---|---|
![]() |
Keybind(String, String, KeyCode) | Constructor for Keybind without modifier |
![]() |
Keybind(String, String, KeyCode, KeyCode) | Constructor for Keybind |
Name | Description | |
---|---|---|
![]() |
ID | The ID of the keybind (Should only be used once in your mod). |
![]() |
Key | The KeyCode the user will have to press. |
![]() |
Mod | The Mod this Keybind belongs to (This is set when using Keybind.Add). |
![]() |
Modifier | The modifier KeyCode the user will have to press with the Key. |
![]() |
Name | The name that will be displayed in settings |
![]() |
Vals | Helpful additional variables. |
Name | Description | |
---|---|---|
![]() ![]() |
Add(Mod, String, String, KeyCode) | Add a keybind. |
![]() ![]() |
Add(Mod, String, String, KeyCode, KeyCode) | Add a keybind. |
![]() ![]() |
AddHeader(Mod, String) | Add Header, blue title bar that can be used to separate settings. |
![]() ![]() |
AddHeader(Mod, String, Color) | Add Header, blue title bar that can be used to separate settings. |
![]() ![]() |
AddHeader(Mod, String, Color, Color) | Add Header, blue title bar that can be used to separate settings. |
![]() ![]() |
Get | Return all keybinds for mod. |
![]() ![]() |
GetDefault | Return all default keybinds for mod. |
![]() |
GetKeybind | Check if keybind is being hold down. (Same behaviour as GetKey) |
![]() |
GetKeybindDown | Check if the keybind was just pressed once. (Same behaviour as GetKeyDown) |
![]() |
GetKeybindUp | Check if the keybind was just released. (Same behaviour as GetKeyUp) |
![]() |
IsDown | **Obsolete. ** [DEPRECATED] Checks if the Keybind was just pressed. |
![]() |
IsPressed | **Obsolete. ** [DEPRECATED] Checks if the Keybind is being held down. |
- How to install MSCLoader using MSCPatcher
- MSCPatcher explained
- How to install mods
- Official experimental linux support
- Unofficial tutorial for linux (wine/proton)
- Install Visual Studio for MSCLoader
- Install template for Visual Studio
- How to use templates
- Debugging your mods in Visual Studio
- Enable DevMode to help with debugging
- Uploading and creating Self update feature for your mod or reference
- All Playmaker Global Variables and Events
- How to create and use Asset Bundles