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/Mouse Moved

From SC2Mapster Wiki
Jump to: navigation, search


Mouse Moved


UI - Player player moves mouse.

Galaxy Code

void TriggerAddEventMouseMoved (trigger t,int player)


Only register for this event when you absolutely need it, as it will generate network traffic from all players for every mouse move they make. This event fires when a player moves themouse. Use "Mouse Moved UI Pos X" and "Mouse Moved UI Pos Y" to get the UI X,Y position where the player moved the mouse. Use "Mouse Moved World Pos X", "Mouse Moved World Pos Y", and "Mouse Moved World Pos Z" to get the X,Y,Z world position where the player moved the mouse.