private void InputServiceOnKeyboardKeyUp(object sender, ArtemisKeyboardKeyEventArgs e) { if (e.Led == null) { return; } DespawnWave(e.Led); }
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); }
private void InputServiceOnKeyboardKeyDown(object sender, ArtemisKeyboardKeyEventArgs e) { if (e.Led == null) { return; } if (!Layer.Leds.Contains(e.Led)) { return; } _activeLed = e.Led; }
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); }