Dash Hotkey + Hotkey Tooltips now support controller
This commit is contained in:
1 parent
5c18d427ba
commit
193a1e3593
2 files changed
+3
-2
No files matched your search
@@ -252,7 +252,7 @@ namespace CalamityMod.ILEditing
|
||||
return;
|
||||
}
|
||||
|
||||
if (CalamityKeybinds.DashHotkey.GetAssignedKeysOrEmpty().Count == 0)
|
||||
if (CalamityKeybinds.DashHotkey.GetAssignedKeysOrEmpty(PlayerInput.CurrentInputMode).Count == 0)
|
||||
orig(self, out dir, out dashing, dashStartAction);
|
||||
else
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@ using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
using Terraria.GameInput;
|
||||
|
||||
namespace CalamityMod
|
||||
{
|
||||
@@ -54,7 +55,7 @@ namespace CalamityMod
|
||||
if (Main.dedServ || mhk is null)
|
||||
return "";
|
||||
|
||||
List<string> keys = mhk.GetAssignedKeysOrEmpty();
|
||||
List<string> keys = mhk.GetAssignedKeysOrEmpty(PlayerInput.CurrentInputMode);
|
||||
if (keys.Count == 0)
|
||||
return GetText("Misc.HotkeyNotBound").Value;
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user