Triggers/Events/Mouse Clicked

From SC2Mapster Wiki
Jump to: navigation, search

UI-Input[edit | edit source]

Mouse Clicked[edit | edit source]

GUI[edit | edit source]

UI - Player player clicks button|Button mouse button down|up/down.

Galaxy Code[edit | edit source]

void TriggerAddEventMouseClicked (trigger t,int player,int mouseButton,bool down)

Description[edit | edit source]

Only register for this event when you absolutely need it, as it will generate network traffic from all players for every mouse click they make. This event fires when a player clicks a mouse button. Use "Mouse Clicked Button" to get the button that was clicked. Use "Mouse Clicked UI Pos X" and "Mouse Clicked UI Pos Y" to get the UI X,Y position where the player clicked the mouse. Use "Mouse Clicked World Pos X", "Mouse Clicked World Pos Y", and "Mouse Clicked World Pos Z" to get the X,Y,Z world position where the player clicked the mouse. Use "Alt Key Pressed", "Control Key Pressed", and "Shift Key Pressed" to find out what modifier keys were pressed.

Parameters[edit | edit source]