summaryrefslogtreecommitdiffstats
path: root/core/os/input_event.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-01-15 22:15:47 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-01-16 08:49:52 +0100
commit2a0ddc1e89ec7b947152c8d0cb132d58f2c00a81 (patch)
treee7cafdf9c76fd6545124ead4dc5ee17f940f0a10 /core/os/input_event.cpp
parent39114178a0952e9f5efee08e23d73d70f3d8d3db (diff)
downloadredot-engine-2a0ddc1e89ec7b947152c8d0cb132d58f2c00a81.tar.gz
Style: Various fixes to play nice with clang-format
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 3cc595208f..4ef99558ad 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.");
}