API:IsCtrlKeyDown

From Runes of Magic Wiki
Revision as of 14:31, 5 June 2009 by Maroot (talk | contribs) (New page: __NOTOC__ Returns a boolean indicating whether the CTRL key is depressed. <code><pre>keydown_state = IsCtrlKeyDown()</pre></code> == Parameters == === Arguments === :none === Returns === ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]