diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-01-17 00:02:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 00:02:02 +0100 |
commit | 0e0fc071355e6ec1e91b74d277bd0a397656dede (patch) | |
tree | 881cf49399b91e1a3c943f9ff64f94b0d94b0843 /src/core | |
parent | Merge pull request #5262 from ReinUsesLisp/buffer-base (diff) | |
parent | input_interpreter: Mark two member functions as const (diff) | |
download | yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.tar yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.tar.gz yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.tar.bz2 yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.tar.lz yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.tar.xz yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.tar.zst yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.zip |
Diffstat (limited to '')
-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) || ...); } |