BlzGetTriggerPlayerMetaKey
- comment
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.
- note
See:
BlzTriggerRegisterPlayerKeyEvent
.- patch
1.31.0.11889
- Source
- common.j
- return type
integer
- Source code
native BlzGetTriggerPlayerMetaKey takes nothing returns integer