From 7cf72233051758d70d721c18a45ccc857647374c Mon Sep 17 00:00:00 2001 From: chatlanin Date: Sun, 5 Mar 2023 19:47:42 +0300 Subject: [PATCH] add key repeat --- src/try_engine/window/window.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/try_engine/window/window.cpp b/src/try_engine/window/window.cpp index a7b4c18..c42e4db 100644 --- a/src/try_engine/window/window.cpp +++ b/src/try_engine/window/window.cpp @@ -123,6 +123,12 @@ namespace try_engine data->callback(e); break; } + case GLFW_REPEAT: + { + system_event::key_pressed_event e { key }; + data->callback(e); + break; + } } }); }