Add methods IsAnyKeyDown on Mouse/Gamepad class

This commit is contained in:
Ruan Lucas
2023-01-19 15:21:50 -04:00
parent 1e98fe2920
commit 8669a291fb
4 changed files with 30 additions and 0 deletions

View File

@@ -164,6 +164,11 @@ public:
return _mappedState.Buttons[static_cast<int32>(button)] && !_mappedPrevState.Buttons[static_cast<int32>(button)];
}
/// <summary>
/// Checks if any gamepad button is currently pressed.
/// </summary>
API_PROPERTY() bool IsAnyKeyDown() const;
/// <summary>
/// Gets the gamepad button up state (true if was released during the current frame).
/// </summary>