diff --git a/Hypercube.Input/Key.cs b/Hypercube.Input/Key.cs index a14da2b..3593ff6 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 0a03927..d1591ef 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 bfa4a2d..2f95201 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 ff6ca14..8855fbf 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 004243a..817507f 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 855764d..987e5ba 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);