Gruppe22.Client.Button.OnMouseDown C# (CSharp) Method

OnMouseDown() public method

public OnMouseDown ( int button ) : bool
button int
return bool
        public override bool OnMouseDown(int button)
        {
            if (!_hidden)
            {
                if (IsHit(Mouse.GetState().X, Mouse.GetState().Y))
                {
                    _parent.HandleEvent(false, Backend.Events.ButtonPressed, _id);
                    return true;
                }
            }
            return false;
        }