From dc70bd27f217413bbda33b4092a3a52a6f1905d5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 18 Mar 2025 19:13:16 +0100 Subject: Add controller button icons in hotkeys, separate keyboard hotkeys and controller hotkeys --- include/Theme.hpp | 6 ++++++ include/Utils.hpp | 1 - include/gui/GlobalSettingsPage.hpp | 3 ++- include/gui/Image.hpp | 29 +++++++++++++++++++++++++++++ include/gui/Utils.hpp | 4 +--- 5 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 include/gui/Image.hpp (limited to 'include') diff --git a/include/Theme.hpp b/include/Theme.hpp index 90dd8cf..bda8dd4 100644 --- a/include/Theme.hpp +++ b/include/Theme.hpp @@ -43,6 +43,12 @@ namespace gsr { mgl::Texture save_texture; mgl::Texture screenshot_texture; + mgl::Texture ps4_home_texture; + mgl::Texture ps4_dpad_up_texture; + mgl::Texture ps4_dpad_down_texture; + mgl::Texture ps4_dpad_left_texture; + mgl::Texture ps4_dpad_right_texture; + double double_click_timeout_seconds = 0.4; // Reloads fonts diff --git a/include/Utils.hpp b/include/Utils.hpp index f7d8538..19700df 100644 --- a/include/Utils.hpp +++ b/include/Utils.hpp @@ -4,7 +4,6 @@ #include #include #include -#include namespace gsr { struct KeyValue { diff --git a/include/gui/GlobalSettingsPage.hpp b/include/gui/GlobalSettingsPage.hpp index d0a0336..c261ab6 100644 --- a/include/gui/GlobalSettingsPage.hpp +++ b/include/gui/GlobalSettingsPage.hpp @@ -59,7 +59,8 @@ namespace gsr { std::unique_ptr create_stream_hotkey_options(); std::unique_ptr create_screenshot_hotkey_options(); std::unique_ptr create_hotkey_control_buttons(); - std::unique_ptr create_hotkey_subsection(ScrollablePage *parent_page); + std::unique_ptr create_keyboard_hotkey_subsection(ScrollablePage *parent_page); + std::unique_ptr create_controller_hotkey_subsection(ScrollablePage *parent_page); std::unique_ptr