Open main menu

API:IsCtrlKeyDown

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)

Returns a boolean indicating whether the CTRL key is depressed.

keydown_state = IsCtrlKeyDown()

ParametersEdit

ArgumentsEdit

none

ReturnsEdit

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


ExampleEdit

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

NotesEdit

Related FunctionsEdit