WoW:API IsModifierKeyDown: Difference between revisions
Jump to navigation
Jump to search
(Created page with '{{wowapi}} Returns whether any modifier key is currently down. isDown = IsModifierKeyDown(); == Returns == ; isDown; Flag - 1 if ALT, CTRL, and/or SHIFT is currently down, nil …') |
m (Move page script moved page API IsModifierKeyDown to API IsModifierKeyDown without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 4: | Line 4: | ||
== Returns == | == Returns == | ||
; isDown : Flag - 1 if ALT, CTRL, and/or SHIFT is currently down, nil otherwise. | ; isDown | ||
: Flag - 1 if ALT, CTRL, and/or SHIFT is currently down, nil otherwise. | |||
; For the WoD expansion 6.0 API, the return value of this function is no longer 1 ... it is a boolean TRUE. | |||
: if ( IsDown == 1 ) currently evaluates as true, but after the 6.0 API goes into effect it will evaluate as false, and an attempt to print the variable isDown will throw an exception/error. | |||
Latest revision as of 04:46, 15 August 2023
Returns whether any modifier key is currently down.
isDown = IsModifierKeyDown();
Returns
- isDown
- Flag - 1 if ALT, CTRL, and/or SHIFT is currently down, nil otherwise.
- For the WoD expansion 6.0 API, the return value of this function is no longer 1 ... it is a boolean TRUE.
- if ( IsDown == 1 ) currently evaluates as true, but after the 6.0 API goes into effect it will evaluate as false, and an attempt to print the variable isDown will throw an exception/error.