From bed3ea8db156d268140169fd7a75543b5fe87507 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Thu, 9 Jul 2020 22:31:50 +0900 Subject: [PATCH] Fixed. --- osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs | 6 +++--- osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs b/osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs index 614c199dc..42ed0428c 100644 --- a/osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs +++ b/osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs @@ -58,7 +58,7 @@ private void load(KaraokeRulesetConfigManager config, IBindable new KaraokeRulesetInputManagerInputState(new MicrophoneInputState(new MicrophoneState())); + => new KaraokeRulesetInputManagerInputState(base.CreateInitialState()); public override void HandleInputStateChange(InputStateChangeEvent inputStateChange) { @@ -119,10 +119,10 @@ public class KaraokeRulesetInputManagerInputState : RulesetInputManagerInputS { public MicrophoneState Microphone { get; } - public KaraokeRulesetInputManagerInputState(MicrophoneInputState state) + public KaraokeRulesetInputManagerInputState(InputState state) : base(state) { - Microphone = state.Microphone; + Microphone = new MicrophoneState(); } } diff --git a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj index 736807d07..4a7e6f0c2 100644 --- a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj +++ b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj @@ -11,7 +11,7 @@ - +