Esempio n. 1
0
        private void InputServiceOnKeyboardKeyUp(object sender, ArtemisKeyboardKeyEventArgs e)
        {
            if (e.Led == null)
            {
                return;
            }

            DespawnWave(e.Led);
        }
Esempio n. 2
0
        private void InputServiceOnKeyboardKeyDown(object sender, ArtemisKeyboardKeyEventArgs e)
        {
            if (e.Led == null)
            {
                return;
            }

            // Get the position of the LED relative to the layer
            SKPoint relativeLedPosition = new SKPoint(e.Led.AbsoluteRectangle.MidX - Layer.Bounds.Left, e.Led.AbsoluteRectangle.MidY - Layer.Bounds.Top);

            SpawnWave(e.Led, relativeLedPosition);
        }
Esempio n. 3
0
        private void InputServiceOnKeyboardKeyDown(object sender, ArtemisKeyboardKeyEventArgs e)
        {
            if (e.Led == null)
            {
                return;
            }

            if (!Layer.Leds.Contains(e.Led))
            {
                return;
            }

            _activeLed = e.Led;
        }
Esempio n. 4
0
        private void InputServiceOnKeyboardKeyDown(object sender, ArtemisKeyboardKeyEventArgs e)
        {
            if (e.Led == null)
            {
                return;
            }

            if (e.Key != Properties.Key.CurrentValue && Properties.OneKeyMode.CurrentValue)
            {
                return;
            }

            // Get the position of the LED relative to the layer
            SKPoint relativeLedPosition = new SKPoint(e.Led.AbsoluteRectangle.MidX - Layer.Bounds.Left, e.Led.AbsoluteRectangle.MidY - Layer.Bounds.Top);

            SpawnEffect(e.Led, relativeLedPosition);
        }