mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 18:32:45 +00:00
19 lines
483 B
C#
19 lines
483 B
C#
using QSB.Patches;
|
|
|
|
namespace QSB.Inputs.Patches
|
|
{
|
|
class InputPatches : QSBPatch
|
|
{
|
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
|
|
|
public override void DoPatches()
|
|
=> QSBCore.HarmonyHelper.AddPrefix<OWInput>("Update", typeof(InputPatches), nameof(OWInput_Update));
|
|
|
|
public override void DoUnpatches()
|
|
=> QSBCore.HarmonyHelper.Unpatch<OWInput>("Update");
|
|
|
|
public static bool OWInput_Update()
|
|
=> QSBInputManager.Instance.InputsEnabled;
|
|
}
|
|
}
|