summaryrefslogtreecommitdiffstats
path: root/examples/ray-tracing/main.cpp
diff options
context:
space:
mode:
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); }