aboutsummaryrefslogtreecommitdiff
path: root/core/os/input_event.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-01-15 22:15:47 +0100
committerRémi Verschelde2017-03-18 23:13:47 +0100
commit16b78da9418abfa23273e4969b8be882c31e5bab (patch)
treec5608588d1d4ef61b46baf6a959d6ea910748545 /core/os/input_event.cpp
parent2d479aa0c6bfff5b4ccad085630fc0bc3c03bf4b (diff)
downloadgodot-16b78da9418abfa23273e4969b8be882c31e5bab.tar.gz
godot-16b78da9418abfa23273e4969b8be882c31e5bab.tar.zst
godot-16b78da9418abfa23273e4969b8be882c31e5bab.zip
Style: Various fixes to play nice with clang-format
(cherry picked from commit 2a0ddc1e89ec7b947152c8d0cb132d58f2c00a81)
Diffstat (limited to 'core/os/input_event.cpp')
-rw-r--r--core/os/input_event.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/os/input_event.cpp b/core/os/input_event.cpp
index b0008a048..1551b50cf 100644
--- a/core/os/input_event.cpp
+++ b/core/os/input_event.cpp
@@ -39,6 +39,8 @@ bool InputEvent::operator==(const InputEvent &p_event) const {
}
switch(type) {
+ /** Current clang-format style doesn't play well with the aligned return values of that switch. */
+ /* clang-format off */
case NONE:
return true;
case KEY:
@@ -80,6 +82,7 @@ bool InputEvent::operator==(const InputEvent &p_event) const {
case ACTION:
return action.action == p_event.action.action
&& action.pressed == p_event.action.pressed;
+ /* clang-format on */
default:
ERR_PRINT("No logic to compare InputEvents of this type, this shouldn't happen.");
}