mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
Add left/right modifier variants to kmods via ClassicAPI
kmods gains lctrl/rctrl, lalt/ralt, lshift/rshift (ClassicAPI's side-specific IsLeft*/IsRight* key checks), so [mod:lshift]/[mod:ralt] and castsequence reset=lctrl work. mod/nomod now use ClassicAPI's IsModifierKeyDown instead of OR-ing the three individual checks.
This commit is contained in:
+11
-5
@@ -670,11 +670,17 @@ function CleveRoids.PrintT(t, depth)
|
||||
end
|
||||
|
||||
CleveRoids.kmods = {
|
||||
ctrl = IsControlKeyDown,
|
||||
alt = IsAltKeyDown,
|
||||
shift = IsShiftKeyDown,
|
||||
mod = function() return (IsControlKeyDown() or IsAltKeyDown() or IsShiftKeyDown()) end,
|
||||
nomod = function() return (not IsControlKeyDown() and not IsAltKeyDown() and not IsShiftKeyDown()) end,
|
||||
ctrl = IsControlKeyDown,
|
||||
lctrl = IsLeftControlKeyDown,
|
||||
rctrl = IsRightControlKeyDown,
|
||||
alt = IsAltKeyDown,
|
||||
lalt = IsLeftAltKeyDown,
|
||||
ralt = IsRightAltKeyDown,
|
||||
shift = IsShiftKeyDown,
|
||||
lshift = IsLeftShiftKeyDown,
|
||||
rshift = IsRightShiftKeyDown,
|
||||
mod = IsModifierKeyDown,
|
||||
nomod = function() return not IsModifierKeyDown() end,
|
||||
}
|
||||
|
||||
-- Key code lookup table for [keydown:X] conditional (Nampower v2.41+)
|
||||
|
||||
Reference in New Issue
Block a user