Esempio n. 1
0
 private void MouseReleaseSprite(MouseReleaseEntityEventArgs e)
 {
     if (_mouseRelease != null)
         _mouseRelease(this, e);
 }
Esempio n. 2
0
        /// <summary>
        /// Action when a button is released
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void Pad_Released(object sender, MouseReleaseEntityEventArgs e)
        {
            YnSprite button = sender as YnSprite;

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

                OnReleased(vpEvent);
            }
        }