summaryrefslogtreecommitdiffstats
path: root/examples/ray-tracing/main.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-11-06 01:47:26 +0800
committerGitHub <noreply@github.com>2024-11-05 09:47:26 -0800
commitb118451e301d734e3e783b3acdf871f3f6ea851c (patch)
tree277f160d31e2c442f724bc6a2d3c09fabff403ca /examples/ray-tracing/main.cpp
parent53dd5928c35d5a5cb1f7d2a563348fd1fa87d672 (diff)
Move switch statement bodies to their own lines (#5493)
* Move switch statement bodies to their own lines * format --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'examples/ray-tracing/main.cpp')
-rw-r--r--examples/ray-tracing/main.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/examples/ray-tracing/main.cpp b/examples/ray-tracing/main.cpp
index 22111149c..aa1e42654 100644
--- a/examples/ray-tracing/main.cpp
+++ b/examples/ray-tracing/main.cpp
@@ -246,11 +246,20 @@ struct RayTracing : public WindowedAppBase
{
switch (key)
{
- default: break;
- case platform::KeyCode::W: wPressed = state; break;
- case platform::KeyCode::A: aPressed = state; break;
- case platform::KeyCode::S: sPressed = state; break;
- case platform::KeyCode::D: dPressed = state; break;
+ default:
+ break;
+ case platform::KeyCode::W:
+ wPressed = state;
+ break;
+ case platform::KeyCode::A:
+ aPressed = state;
+ break;
+ case platform::KeyCode::S:
+ sPressed = state;
+ break;
+ case platform::KeyCode::D:
+ dPressed = state;
+ break;
}
}
void onKeyDown(platform::KeyEventArgs args) { setKeyState(args.key, true); }