# Hotkey Pressed

Grammar — Player player presses hotkey key down|up/down
FlagsNative | Event

Only register for this event when you absolutely need it, as it will generate network traffic from all players for every hotkey they press. This event fires when a player presses the specified hotkey. Use “HotKey Pressed” to get the hotkey that was pressed.WARNING: If code handles the hotkey press (for example, Army Select is pressed and code responds by selecting all army units), this event WILL NOT fire!

# Arguments

Returns — void

native void TriggerAddEventHotkeyPressed(
	trigger t,
	int player,
	int hotkey,
	bool down,
);

Category: UI / Input

# Examples

— None found —