示例#1
0
 private void MouseJustClickedSprite(MouseClickEntityEventArgs e)
 {
     if (_mouseClicked != null)
         _mouseClicked(this, e);
 }
示例#2
0
 private void MouseClickSprite(MouseClickEntityEventArgs e)
 {
     if (_mouseClick != null)
         _mouseClick(this, e);
 }
示例#3
0
        /// <summary>
        /// Action when a button is pressed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void Pad_Click(object sender, MouseClickEntityEventArgs e)
        {
            YnSprite button = sender as YnSprite;

            if (button != null)
            {
                PadButtons direction = GetDirection(button.Name);
                VirtualPadPressedEventArgs vpEvent = new VirtualPadPressedEventArgs(direction);

                OnPressed(vpEvent);
            }
        }