Open main menu

Returns a boolean indicating whether the CTRL key is depressed.

keydown_state = IsCtrlKeyDown()

Parameters

Arguments

none

Returns

true/false - boolean value if the CTRL key is in the down state.


Example

if (IsCtrlKeyDown()) then
    CastSpellByName("Flame");
else
    CastSpellByName("Fireball");
end

Notes

Related Functions