Function BlzGetTriggerPlayerMetaKey

  • Returns the meta keys that were pressed (aka modifier keys).

    Example: if player pressed CTRL+W then metakey=2 and oskeytype=OSKEY_W

    Meta keys:

    • 0 = None
    • 1 = Shift
    • 2 = Control (CTRL)
    • 4 = ALT
    • 8 = Meta aka Windows key aka Super

    Meta keys can be pressed simultaneously (CTRL+SHIFT+W) in that case, you need to add the numbers or use bit OR/AND/XOR. CTRL+SHIFT = 2+1 = 3. CTRL+SHIFT+ALT = 2+1+4 = 7.

    Returns number

    Note

    See: BlzTriggerRegisterPlayerKeyEvent.

    Patch

    1.31

Generated using TypeDoc