diff options
author | Lioncash <mathew1800@gmail.com> | 2021-01-16 22:04:40 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-01-16 22:08:35 +0100 |
commit | ca9afa329356340a81143ca3fe318a94ba32df81 (patch) | |
tree | c1d3d073d25984d08457cdb820af6f2636a97ecd /src/core | |
parent | Merge pull request #5366 from Morph1984/button-press (diff) | |
download | yuzu-ca9afa329356340a81143ca3fe318a94ba32df81.tar yuzu-ca9afa329356340a81143ca3fe318a94ba32df81.tar.gz yuzu-ca9afa329356340a81143ca3fe318a94ba32df81.tar.bz2 yuzu-ca9afa329356340a81143ca3fe318a94ba32df81.tar.lz yuzu-ca9afa329356340a81143ca3fe318a94ba32df81.tar.xz yuzu-ca9afa329356340a81143ca3fe318a94ba32df81.tar.zst yuzu-ca9afa329356340a81143ca3fe318a94ba32df81.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/frontend/input_interpreter.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/frontend/input_interpreter.h b/src/core/frontend/input_interpreter.h index 36a92a6b6..73fc47ffb 100644 --- a/src/core/frontend/input_interpreter.h +++ b/src/core/frontend/input_interpreter.h @@ -100,12 +100,12 @@ public: /** * Checks whether any of the buttons in the parameter list is pressed once. * - * @tparam HIDButton The buttons to check. + * @tparam T The buttons to check. * * @returns True when at least one of the buttons is pressed once. */ template <HIDButton... T> - [[nodiscard]] bool IsAnyButtonPressedOnce() { + [[nodiscard]] bool IsAnyButtonPressedOnce() const { return (IsButtonPressedOnce(T) || ...); } @@ -121,12 +121,12 @@ public: /** * Checks whether any of the buttons in the parameter list is held down. * - * @tparam HIDButton The buttons to check. + * @tparam T The buttons to check. * * @returns True when at least one of the buttons is held down. */ template <HIDButton... T> - [[nodiscard]] bool IsAnyButtonHeld() { + [[nodiscard]] bool IsAnyButtonHeld() const { return (IsButtonHeld(T) || ...); } |