# Alt Key Pressed
Grammar — Alt Key Pressed
Flags —Native
|Function
Returns true if the alt key was pressed. Use in response to a “Key Pressed”, “Mouse Clicked” or “Mouse Wheel” event.
Returns — bool
native bool EventKeyAlt();
# Supported triggers
- Key Pressed — TriggerAddEventKeyPressed
- Mouse Clicked — TriggerAddEventMouseClicked
# 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/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:15621
// Conditions
if (testConds) {
if (!(((EventKeyAlt() == true) && ((EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[1]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[1]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[1]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[1]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[1]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[1]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[2]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[2]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[2]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[2]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[2]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[2]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[3]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[3]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[3]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[3]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[3]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[3]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[4]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[4]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[4]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[4]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[4]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[4]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[5]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[5]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[5]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[5]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[5]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[5]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[6]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[6]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[6]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[6]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[6]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[6]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[7]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[7]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[7]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[7]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[7]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[7]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[8]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[8]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[8]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[8]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[8]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[8]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[9]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[9]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[9]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[9]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[9]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[9]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButton[10]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPetowner[10]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonPet[10]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonA[10]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonB[10]) || (EventDialogControl() == libUIUI_gv_uIPartyFrame.lv_heroPartyButtonC[10]))))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:15716
// Conditions
if (testConds) {
if (!((EventKeyAlt() == true))) {
return false;
}
mods/heromods/yrel.stormmod — base.stormdata/LibHYRL.galaxy:250
// Conditions
if (testConds) {
if (!((EventKeyAlt() == false))) {
return false;
}
mods/heromods/yrel.stormmod — base.stormdata/LibHYRL.galaxy:344
// Conditions
if (testConds) {
if (!((EventKeyAlt() == false))) {
return false;
}
mods/heromods/yrel.stormmod — base.stormdata/LibHYRL.galaxy:438
// Conditions
if (testConds) {
if (!((EventKeyAlt() == false))) {
return false;
}