API:IsCtrlKeyDown

From Runes of Magic Wiki
Jump to: navigation, search

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

Notes[edit | edit source]

Related Functions[edit | edit source]