add shortcut method to create a keybind list for a single default keybind (#744)
This commit is contained in:
parent
7e280a066d
commit
7e90b1c60a
|
@ -83,6 +83,15 @@ namespace StardewModdingAPI.Utilities
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Get a keybind list for a single keybind.</summary>
|
||||||
|
/// <param name="buttons">The buttons that must be down to activate the keybind.</param>
|
||||||
|
public static KeybindList ForSingle(params SButton[] buttons)
|
||||||
|
{
|
||||||
|
return new KeybindList(
|
||||||
|
new Keybind(buttons)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Get the overall keybind list state relative to the previous tick.</summary>
|
/// <summary>Get the overall keybind list state relative to the previous tick.</summary>
|
||||||
/// <remarks>States are transitive across keybind. For example, if one keybind is 'released' and another is 'pressed', the state of the keybind list is 'held'.</remarks>
|
/// <remarks>States are transitive across keybind. For example, if one keybind is 'released' and another is 'pressed', the state of the keybind list is 'held'.</remarks>
|
||||||
public SButtonState GetState()
|
public SButtonState GetState()
|
||||||
|
|
Loading…
Reference in New Issue