aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2021-01-16 20:02:02 -0300
committerGitHub <noreply@github.com>2021-01-16 20:02:02 -0300
commit0e0fc071355e6ec1e91b74d277bd0a397656dede (patch)
tree881cf49399b91e1a3c943f9ff64f94b0d94b0843
parentfd873fd36902d2625393670e032a1de7222ab88b (diff)
parentca9afa329356340a81143ca3fe318a94ba32df81 (diff)
Merge pull request #5740 from lioncash/const-fn
input_interpreter: Mark two member functions as const
-rw-r--r--src/core/frontend/input_interpreter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/frontend/input_interpreter.h b/src/core/frontend/input_interpreter.h
index 36a92a6b67..73fc47ffbf 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) || ...);
}