12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27 ■ API <strong>Reference</strong> 851IsLeftShiftKeyDownReturns whether the left Shift key on the keyboard is held down.isDown = IsLeftShiftKeyDown()(Note: The Mac <strong>WoW</strong> client does not distingish between left <strong>and</strong> right modifierkeys, so both Shift keys are reported as Left Shift.)Returns:isDown—1 if the left Shift key on the keyboard is currently held down; otherwisenil (1nil)IsLinuxClientReturns whether the player is using the Linux game client.isLinux = IsLinuxClient()Does not indicate whether the player is running a Windows client on Linuxwith virtualization s<strong>of</strong>tware. Blizzard has not released an <strong>of</strong>ficial <strong>WoW</strong> client<strong>for</strong> Linux, but this function is included just in case that situation changes.Returns:isLinux—1 if running the Linux client; otherwise nil (1nil)IsLoggedInReturns whether the login process has completed.loggedIn = IsLoggedIn()The PLAYER_LOGIN event provides similar in<strong>for</strong>mation; this function presentsan alternative that can be used across UI reloads.Returns:loggedIn—1 if the login process has completed; otherwise nil (1nil)IsMacClientReturns whether the player is using the Mac OS X game client.isMac = IsMacClient()Returns:isMac—1 if running the Mac OS X client; otherwise nil (1nil)IsModifiedClickDetermines if the modifiers specified in the click-type had been held downwhile the button click occurred.modifiedClick = IsModifiedClick(“type“)If called from a click h<strong>and</strong>ler (OnMouseDown, OnMouseUp, OnClick,OnDoubleClick, PreClick,orPostClick), checks mouse buttons included inthe binding; otherwise checks modifiers only (see example).Arguments:type—Token identifying a modified click action (string)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!