Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Triggers/Events/Key Pressed

From SC2Mapster Wiki
Jump to: navigation, search

UI-Input

Key Pressed

GUI

UI - Player player presses key key down|up/down with shift s2|Enabled, control c2|Enabled, alt a2|Enabled

Galaxy Code

void TriggerAddEventKeyPressed (trigger t,int player,int key,bool down,int s,int c,int a)

Description

Only register for this event when you absolutely need it, as it will generate network traffic from all players for every button they press. This event fires when a player presses the specified key. Use "Key Pressed" to get the key that was pressed. Use "Alt Key Pressed", "Control Key Pressed", and "Shift Key Pressed" to find out what modifier keys were pressed.

Parameters