FairyGUI.GButton.__touchBegin C# (CSharp) Method

__touchBegin() private method

private __touchBegin ( EventContext context ) : void
context EventContext
return void
        private void __touchBegin(EventContext context)
        {
            _down = true;
            context.CaptureTouch();

            if (_mode == ButtonMode.Common)
            {
                if (this.grayed && _buttonController != null && _buttonController.HasPage(DISABLED))
                    SetState(SELECTED_DISABLED);
                else
                    SetState(DOWN);
            }

            if (linkedPopup != null)
            {
                if (linkedPopup is Window)
                    ((Window)linkedPopup).ToggleStatus();
                else
                    this.root.TogglePopup(linkedPopup, this);
            }
        }