# Mouse Clicked UI Pos X

Grammar — Mouse X position clicked in the UI
FlagsNative | Function

Returns the mouse position clicked in the X axis. Use in response to a “Mouse Clicked” event.

Returns — int

native int EventMouseClickedPosXUI();

# Supported triggers

Category: UI / Input

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:6531

        }

        if (!((EventMouseClickedPosXUI() >= 430))) {
            return false;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:6535

        }

        if (!((EventMouseClickedPosXUI() <= 1120))) {
            return false;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:6553

    }

    libVCUI_gv_pU_ArmyUnitRotateOldMouseXPos = EventMouseClickedPosXUI();
    TriggerEnable(libVCUI_gt_PU_ArmyRotateUnit, true);
    TriggerEnable(libVCUI_gt_PU_ArmyRotateUnitEnd, true);