From 939bf23921cce4b934ecc2a98fa871c7538d0276 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 19 Oct 2024 23:49:22 +0200 Subject: Add screenshots --- include/Overlay.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/Overlay.hpp b/include/Overlay.hpp index bf3600f..fcc3781 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -11,6 +11,7 @@ #include #include #include +#include namespace gsr { class DropdownButton; @@ -37,6 +38,8 @@ namespace gsr { void toggle_show(); bool is_open() const; private: + void process_key_bindings(mgl::Event &event); + void update_gsr_process_status(); void load_program_status(); @@ -53,6 +56,12 @@ namespace gsr { void on_press_start_stream(const std::string &id); bool update_compositor_texture(const mgl_monitor *monitor); private: + using KeyBindingCallback = std::function; + struct KeyBinding { + mgl::Event::KeyEvent key_event; + KeyBindingCallback callback; + }; + mgl::Window &window; std::string resources_path; GsrInfo gsr_info; @@ -80,5 +89,7 @@ namespace gsr { DropdownButton *stream_dropdown_button_ptr = nullptr; RecordingStatus recording_status = RecordingStatus::NONE; + + std::array key_bindings; }; } \ No newline at end of file -- cgit v1.2.3