# Key Pressed
Grammar — Key Pressed
Flags —Native
|Function
Returns the key pressed. Use in response to a “Key Pressed” event.
Returns — int
<preset::Key>
native int EventKeyPressed();
# Supported triggers
- Key Pressed — TriggerAddEventKeyPressed
# Related
Category: UI / Input
- Key Pressed —
void
— TriggerAddEventKeyPressed - Hotkey Pressed —
void
— TriggerAddEventHotkeyPressed - Button Pressed —
void
— TriggerAddEventButtonPressed - Mouse Clicked —
void
— TriggerAddEventMouseClicked - Mouse Moved —
void
— TriggerAddEventMouseMoved - Mouse Wheel —
void
— TriggerAddEventMouseWheel - Button Pressed —
string
<gamelink::Button> — EventButtonPressed - Key Pressed —
int
<preset::Key> — EventKeyPressed - Hotkey Pressed —
int
<preset::Key> — EventHotkeyPressed - Control Key Pressed —
bool
— EventKeyControl - Alt Key Pressed —
bool
— EventKeyAlt - Shift Key Pressed —
bool
— EventKeyShift - Mouse Clicked Button —
int
<preset::MouseButton> — EventMouseClickedButton - Mouse Clicked UI Pos X —
int
— EventMouseClickedPosXUI - Mouse Clicked UI Pos Y —
int
— EventMouseClickedPosYUI - Mouse Clicked World Pos X —
fixed
— EventMouseClickedPosXWorld - Mouse Clicked World Pos Y —
fixed
— EventMouseClickedPosYWorld - Mouse Clicked World Pos Z —
fixed
— EventMouseClickedPosZWorld - Mouse Moved UI Pos X —
int
— EventMouseMovedPosXUI - Mouse Moved UI Pos Y —
int
— EventMouseMovedPosYUI - Mouse Moved World Pos X —
fixed
— EventMouseMovedPosXWorld - Mouse Moved World Pos Y —
fixed
— EventMouseMovedPosYWorld - Mouse Moved World Pos Z —
fixed
— EventMouseMovedPosZWorld - Mouse Wheel Spin —
fixed
— EventMouseWheelSpin
# Examples
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2983
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2983
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2983
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2983
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2983
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2983
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2993
}
lv_key = EventKeyPressed();
auto9D6A95EF_val = lv_key;
if (auto9D6A95EF_val == c_key1) {
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:3071
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:3071
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:3071
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:3071
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:3071
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:3071
}
if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:3081
}
lv_key = EventKeyPressed();
auto9D6A95EF_val = lv_key;
if (auto9D6A95EF_val == c_key1) {