From c503973739af01e699e77c8a61dc0e2a68775c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=B6hler?= <96887858+power-unsealed@users.noreply.github.com> Date: Wed, 15 Mar 2023 16:18:16 +0100 Subject: [PATCH] Add space key for transform reset (#294) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Florian Köhler --- examples/with_winit/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/with_winit/src/lib.rs b/examples/with_winit/src/lib.rs index c7d8d4f..34606cc 100644 --- a/examples/with_winit/src/lib.rs +++ b/examples/with_winit/src/lib.rs @@ -139,6 +139,9 @@ fn run( * transform; } } + Some(VirtualKeyCode::Space) => { + transform = Affine::IDENTITY; + } Some(VirtualKeyCode::Escape) => { *control_flow = ControlFlow::Exit; }