diff --git a/src/Input/Silk.NET.Input.Common/Axis.cs b/src/Input/Silk.NET.Input.Common/Axis.cs index 1a953e0647..0b3736c6c8 100644 --- a/src/Input/Silk.NET.Input.Common/Axis.cs +++ b/src/Input/Silk.NET.Input.Common/Axis.cs @@ -5,11 +5,26 @@ namespace Silk.NET.Input.Common { + /// + /// Represents a joystick axis. + /// public struct Axis { + /// + /// The index of this axis. + /// public int Index { get; } + + /// + /// The raw position of this axis. + /// public float Position { get; } + /// + /// Creates a new instance of the Axis struct. + /// + /// The index of this axis. + /// The position of this axis. public Axis(int index, float position) { Index = index; diff --git a/src/Input/Silk.NET.Input.Common/Button.cs b/src/Input/Silk.NET.Input.Common/Button.cs index 45275c5080..17925363aa 100644 --- a/src/Input/Silk.NET.Input.Common/Button.cs +++ b/src/Input/Silk.NET.Input.Common/Button.cs @@ -5,12 +5,32 @@ namespace Silk.NET.Input.Common { + /// + /// Represents a joystick button. + /// public struct Button { + /// + /// The name of this button. Used to determine which button it is. + /// public ButtonName Name { get; } + + /// + /// The index of this button. + /// public int Index { get; } + + /// + /// Whether or not this button is currently pressed. + /// public bool Pressed { get; } + /// + /// Creates a new instance of the Button struct. + /// + /// + /// + /// public Button(ButtonName name, int index, bool pressed) { Name = name;