API:IsCtrlKeyDown
Returns a boolean indicating whether the CTRL key is depressed.
keydown_state = IsCtrlKeyDown()
Parameters[edit | edit source]
Arguments[edit | edit source]
- none
Returns[edit | edit source]
- true/false - boolean value if the CTRL key is in the down state.
Example[edit | edit source]
if (IsCtrlKeyDown()) then
CastSpellByName("Flame");
else
CastSpellByName("Fireball");
end