hello i made a weakaura that displays in text what modifier key is held but its set to update on every frame
how do i change it to update on trigger update what would i need to put for the trigger?
function ()
local modifierKeys = ""
if (IsShiftKeyDown()) then
modifierKeys = modifierKeys .. "SHIFT"
end
if (IsControlKeyDown()) then
if (modifierKeys ~= "") then
modifierKeys = modifierKeys .. " + "
end
modifierKeys = modifierKeys .. "CONTROL"
end
if (IsAltKeyDown()) then
if (modifierKeys ~= "") then
modifierKeys = modifierKeys .. " + "
end
modifierKeys = modifierKeys .. "ALT"
end
return modifierKeys
end
Trigger custom status check on event(s) MODIFIER_STATE_CHANGED
function() return IsLeftShiftKeyDown() or IsLeftAltKeyDown() or IsLeftControlKeyDown() end