diff --git a/osu.Framework.Microphone/Input/Bindings/IMicrophoneAction.cs b/osu.Framework.Microphone/Input/Bindings/IMicrophoneAction.cs new file mode 100644 index 0000000..f3b0de7 --- /dev/null +++ b/osu.Framework.Microphone/Input/Bindings/IMicrophoneAction.cs @@ -0,0 +1,18 @@ +// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. +// See the LICENCE file in the repository root for full licence text. + +namespace osu.Framework.Input.Bindings +{ + public interface IMicrophoneAction + { + /// + /// Detected pitch + /// + public double Pitch { get; set; } + + /// + /// Detected volumn + /// + public float Volumn { get; set; } + } +} diff --git a/osu.Framework.Microphone/Input/Bindings/MicrophoneKeyBindingContainer.cs b/osu.Framework.Microphone/Input/Bindings/MicrophoneKeyBindingContainer.cs new file mode 100644 index 0000000..0cc99b3 --- /dev/null +++ b/osu.Framework.Microphone/Input/Bindings/MicrophoneKeyBindingContainer.cs @@ -0,0 +1,18 @@ +// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. +// See the LICENCE file in the repository root for full licence text. + +using osu.Framework.Input.Events; +using System.Collections.Generic; + +namespace osu.Framework.Input.Bindings +{ + public class MicrophoneKeyBindingContainer : KeyBindingContainer where T : struct, IMicrophoneAction + { + public override IEnumerable DefaultKeyBindings => new List(); + + protected override bool Handle(UIEvent e) + { + return base.Handle(e); + } + } +}