Fixed keyboard hide keys not working

This commit is contained in:
Wofsauge committed 2021-11-12 17:25:35 +01:00
1 parent 75ed6c989d
commit 6e6f074439
1 file changed
+1 -1
+1 -1
View File
@@ -593,7 +593,7 @@ local function onRender(t)
EID.isDisplaying = false
EID:setPlayer()
if Input.IsButtonTriggered(EID.Config["HideKey"], EID.player.ControllerIndex or 0) then
if Input.IsButtonTriggered(EID.Config["HideKey"], EID.player.ControllerIndex or 0) or Input.IsButtonTriggered(EID.Config["HideKey"], 0) then
EID.isHidden = not EID.isHidden
end
if ModConfigMenu and ModConfigMenu.IsVisible and ModConfigMenu.Config["Mod Config Menu"].HideHudInMenu and EID.MCMCompat_isDisplayingEIDTab ~= "Visuals" then --if if the mod config menu exists, is opened and Hide Hud is enabled, and ModConfigMenu is currently in the "Visuals" tab of EID