The search keyword must be a single word (no spaces).

Function BlzGetTriggerPlayerMetaKey

Line
4089
Location
common.j
Constant?
no
Type
native
Arguments
nothing
Returns
integer
4089
native BlzGetTriggerPlayerMetaKey                  takes nothing returns integer
4090
native BlzGetTriggerPlayerIsKeyDown                takes nothing returns boolean
4091
native BlzEnableCursor                             takes boolean enable returns nothing
4092
native BlzSetMousePos                              takes integer x, integer y returns nothing
4093
native BlzGetLocalClientWidth                      takes nothing returns integer
4094
native BlzGetLocalClientHeight                     takes nothing returns integer

Information about BlzGetTriggerPlayerMetaKey

City17 4 years
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.

See: [jassdoc]BlzTriggerRegisterPlayerKeyEvent[/jassdoc]
You must be logged in with a standard account to contribute.