diff options
Diffstat (limited to 'examples/ray-tracing-pipeline/main.cpp')
| -rw-r--r-- | examples/ray-tracing-pipeline/main.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/examples/ray-tracing-pipeline/main.cpp b/examples/ray-tracing-pipeline/main.cpp index f5ad03e1b..d32130c6a 100644 --- a/examples/ray-tracing-pipeline/main.cpp +++ b/examples/ray-tracing-pipeline/main.cpp @@ -255,11 +255,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); } |
