diff options
| author | 2021-01-16 20:02:02 -0300 | |
|---|---|---|
| committer | 2021-01-16 20:02:02 -0300 | |
| commit | 0e0fc071355e6ec1e91b74d277bd0a397656dede (patch) | |
| tree | 881cf49399b91e1a3c943f9ff64f94b0d94b0843 /src | |
| parent | Merge pull request #5262 from ReinUsesLisp/buffer-base (diff) | |
| parent | input_interpreter: Mark two member functions as const (diff) | |
| download | yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.tar.gz yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.tar.xz yuzu-0e0fc071355e6ec1e91b74d277bd0a397656dede.zip | |
Merge pull request #5740 from lioncash/const-fn
input_interpreter: Mark two member functions as const
Diffstat (limited to 'src')
| -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: | |||
| 100 | /** | 100 | /** |
| 101 | * Checks whether any of the buttons in the parameter list is pressed once. | 101 | * Checks whether any of the buttons in the parameter list is pressed once. |
| 102 | * | 102 | * |
| 103 | * @tparam HIDButton The buttons to check. | 103 | * @tparam T The buttons to check. |
| 104 | * | 104 | * |
| 105 | * @returns True when at least one of the buttons is pressed once. | 105 | * @returns True when at least one of the buttons is pressed once. |
| 106 | */ | 106 | */ |
| 107 | template <HIDButton... T> | 107 | template <HIDButton... T> |
| 108 | [[nodiscard]] bool IsAnyButtonPressedOnce() { | 108 | [[nodiscard]] bool IsAnyButtonPressedOnce() const { |
| 109 | return (IsButtonPressedOnce(T) || ...); | 109 | return (IsButtonPressedOnce(T) || ...); |
| 110 | } | 110 | } |
| 111 | 111 | ||
| @@ -121,12 +121,12 @@ public: | |||
| 121 | /** | 121 | /** |
| 122 | * Checks whether any of the buttons in the parameter list is held down. | 122 | * Checks whether any of the buttons in the parameter list is held down. |
| 123 | * | 123 | * |
| 124 | * @tparam HIDButton The buttons to check. | 124 | * @tparam T The buttons to check. |
| 125 | * | 125 | * |
| 126 | * @returns True when at least one of the buttons is held down. | 126 | * @returns True when at least one of the buttons is held down. |
| 127 | */ | 127 | */ |
| 128 | template <HIDButton... T> | 128 | template <HIDButton... T> |
| 129 | [[nodiscard]] bool IsAnyButtonHeld() { | 129 | [[nodiscard]] bool IsAnyButtonHeld() const { |
| 130 | return (IsButtonHeld(T) || ...); | 130 | return (IsButtonHeld(T) || ...); |
| 131 | } | 131 | } |
| 132 | 132 | ||