WoW:API IsAutoLootKeyDown: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API IsAutoLootKeyDown to API IsAutoLootKeyDown without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Stub/API}}
{{removedapi|2.2|Replaced by {{api|IsModifiedClick}}("AUTOLOOTTOGGLE")}}
{{wowapi}}
{{wowapi}}  
Returns true or false if the key is down
Checks whether the autoloot key is down.
<pre> down = IsAutoLootKeyDown(); </pre>
down = IsAutoLootKeyDown()
 
== Arguments ==
:none
 


== Parameters ==
=== Returns ===
=== Returns ===
:; down : [[Boolean]] - Whether the autoloot key is down


:; down : Boolean - nil or 1
== Removed ==
This function was removed in 2.2.x. For backward compatibility or you'd rather not track down every single call to this function, just add this somewhere in the Lua file:
<pre>if not IsAutoLootKeyDown then
    function IsAutoLootKeyDown()
        return IsModifiedClick("AUTOLOOTTOGGLE")
    end
end</pre>

Latest revision as of 04:46, 15 August 2023

WoW API < IsAutoLootKeyDown

Checks whether the autoloot key is down.

down = IsAutoLootKeyDown()

Arguments[edit]

none


Returns[edit]

down
Boolean - Whether the autoloot key is down

Removed[edit]

This function was removed in 2.2.x. For backward compatibility or you'd rather not track down every single call to this function, just add this somewhere in the Lua file:

if not IsAutoLootKeyDown then
    function IsAutoLootKeyDown()
        return IsModifiedClick("AUTOLOOTTOGGLE")
    end
end