Skip to content

Commit

Permalink
Add mouse and gamepad sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
Apostolique committed Jan 24, 2021
1 parent 0d6b812 commit 2f58cd5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
15 changes: 13 additions & 2 deletions Source/GamePadButton.cs → Source/GamePad.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Apos.Input {
/// <summary>Available gamepad buttons.</summary>
/// <summary>Gamepad buttons.</summary>
public enum GamePadButton {
/// <summary>A button.</summary>
A,
Expand Down Expand Up @@ -32,4 +32,15 @@ public enum GamePadButton {
/// <summary>DPad up button.</summary>
Up
}
}
/// <summary>Gamepad sensors.</summary>
public enum GamePadSensor {
/// <summary>Left analog trigger.</summary>
LeftTrigger,
/// <summary>Right analog trigger.</summary>
RightTrigger,
/// <summary>Left analog thumbstick.</summary>
LeftStick,
/// <summary>Right analog thumbstick.</summary>
RightStick
}
}
11 changes: 9 additions & 2 deletions Source/MouseButton.cs → Source/Mouse.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Apos.Input {
/// <summary>Available mouse buttons.</summary>
/// <summary>Mouse buttons.</summary>
public enum MouseButton {
/// <summary>Left mouse button.</summary>
LeftButton,
Expand All @@ -12,4 +12,11 @@ public enum MouseButton {
/// <summary>XButton2 mouse button.</summary>
XButton2
}
}
/// <summary>Non binary mouse sensors.</summary>
public enum MouseSensor {
/// <summary>Mouse scrollwheel.</summary>
ScrollWheel,
/// <summary>Mouse pointer.</summary>
Pointer
}
}

0 comments on commit 2f58cd5

Please sign in to comment.