From 9e5e8c2547b380f8f1d40efef3fd20e4727d2e97 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Tue, 31 Mar 2020 21:45:17 +1000 Subject: [PATCH] Seal PadSchemaControl subclasses --- .../tools/VirtualPads/schema/PadSchemaControl.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PadSchemaControl.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PadSchemaControl.cs index 84af7ebb39..1cead15db7 100644 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PadSchemaControl.cs +++ b/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PadSchemaControl.cs @@ -23,7 +23,7 @@ namespace BizHawk.Client.EmuHawk } /// A single on/off button - public class ButtonSchema : PadSchemaControl + public sealed class ButtonSchema : PadSchemaControl { public string? DisplayName { get; set; } @@ -62,7 +62,7 @@ namespace BizHawk.Client.EmuHawk } /// A single analog control (e.g. pressure sensitive button) - public class SingleAxisSchema : PadSchemaControl + public sealed class SingleAxisSchema : PadSchemaControl { public string DisplayName { get; set; } @@ -86,7 +86,7 @@ namespace BizHawk.Client.EmuHawk } /// An analog stick (X, Y) pair - public class AnalogSchema : PadSchemaControl + public sealed class AnalogSchema : PadSchemaControl { public ControllerDefinition.AxisRange AxisRange { get; set; } @@ -100,7 +100,7 @@ namespace BizHawk.Client.EmuHawk } /// An (X, Y) pair intended to be a screen coordinate (for zappers, mouse, stylus, etc.) - public class TargetedPairSchema : PadSchemaControl + public sealed class TargetedPairSchema : PadSchemaControl { public readonly int MaxValue; @@ -116,7 +116,7 @@ namespace BizHawk.Client.EmuHawk } } - public class DiscManagerSchema : PadSchemaControl + public sealed class DiscManagerSchema : PadSchemaControl { public readonly IEmulator OwnerEmulator;