diff --git a/Hypercube.Input/Key.cs b/Hypercube.Input/Key.cs index a14da2bf..3593ff6e 100644 --- a/Hypercube.Input/Key.cs +++ b/Hypercube.Input/Key.cs @@ -1,5 +1,8 @@ -namespace Hypercube.Input; +using JetBrains.Annotations; +namespace Hypercube.Input; + +[PublicAPI] public enum Key { Unknown = -1, diff --git a/Hypercube.Input/KeyModifiers.cs b/Hypercube.Input/KeyModifiers.cs index 0a039270..d1591ef0 100644 --- a/Hypercube.Input/KeyModifiers.cs +++ b/Hypercube.Input/KeyModifiers.cs @@ -1,6 +1,8 @@ -namespace Hypercube.Input; +using JetBrains.Annotations; -[Flags] +namespace Hypercube.Input; + +[PublicAPI, Flags] public enum KeyModifiers { None = default, diff --git a/Hypercube.Input/KeyState.cs b/Hypercube.Input/KeyState.cs index bfa4a2d0..2f952019 100644 --- a/Hypercube.Input/KeyState.cs +++ b/Hypercube.Input/KeyState.cs @@ -1,5 +1,8 @@ -namespace Hypercube.Input; +using JetBrains.Annotations; +namespace Hypercube.Input; + +[PublicAPI] public enum KeyState { Released, diff --git a/Hypercube.Input/KeyStateChangedArgs.cs b/Hypercube.Input/KeyStateChangedArgs.cs index ff6ca148..8855fbf1 100644 --- a/Hypercube.Input/KeyStateChangedArgs.cs +++ b/Hypercube.Input/KeyStateChangedArgs.cs @@ -1,5 +1,8 @@ -namespace Hypercube.Input; +using JetBrains.Annotations; +namespace Hypercube.Input; + +[PublicAPI] public class KeyStateChangedArgs { public bool Shift => Modifiers.HasFlag(KeyModifiers.Shift); @@ -12,7 +15,6 @@ public class KeyStateChangedArgs public readonly Key Key; public readonly KeyState State; public readonly KeyModifiers Modifiers; - public readonly int ScanCode; public KeyStateChangedArgs(Key key, KeyState state, KeyModifiers modifiers, int scanCode) diff --git a/Hypercube.Input/MouseButton.cs b/Hypercube.Input/MouseButton.cs index 004243a5..817507f1 100644 --- a/Hypercube.Input/MouseButton.cs +++ b/Hypercube.Input/MouseButton.cs @@ -1,5 +1,8 @@ -namespace Hypercube.Input; +using JetBrains.Annotations; +namespace Hypercube.Input; + +[PublicAPI] public enum MouseButton { Left = 0, diff --git a/Hypercube.Input/MouseButtonChangedArgs.cs b/Hypercube.Input/MouseButtonChangedArgs.cs index 855764d2..987e5bae 100644 --- a/Hypercube.Input/MouseButtonChangedArgs.cs +++ b/Hypercube.Input/MouseButtonChangedArgs.cs @@ -1,5 +1,8 @@ -namespace Hypercube.Input; +using JetBrains.Annotations; +namespace Hypercube.Input; + +[PublicAPI] public class MouseButtonChangedArgs { public bool Shift => Modifiers.HasFlag(KeyModifiers.Shift);