aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/InputConfig
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2023-02-17 04:21:52 +0100
committerNadia Holmquist Pedersen <nadia@nhp.sh>2023-02-17 04:33:26 +0100
commit382155e6fe25ede22c8290733acfe50665807828 (patch)
tree90dc3d5d9e35d2f33f08bb8c284b5c3e64d7ed3b /src/frontend/qt_sdl/InputConfig
parent00edeb3c3c053bc2b3c9ac83e33688626498f2cc (diff)
Add hotkey to toggle screen emphasis
Toggles which screen is emphasized when the screen sizing is set to emphasize top or bottom. (Closes issue #1565)
Diffstat (limited to 'src/frontend/qt_sdl/InputConfig')
-rw-r--r--src/frontend/qt_sdl/InputConfig/InputConfigDialog.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/frontend/qt_sdl/InputConfig/InputConfigDialog.cpp b/src/frontend/qt_sdl/InputConfig/InputConfigDialog.cpp
index 92a0186..396da29 100644
--- a/src/frontend/qt_sdl/InputConfig/InputConfigDialog.cpp
+++ b/src/frontend/qt_sdl/InputConfig/InputConfigDialog.cpp
@@ -60,7 +60,8 @@ const int hk_general[] =
HK_FullscreenToggle,
HK_Lid,
HK_Mic,
- HK_SwapScreens
+ HK_SwapScreens,
+ HK_SwapScreenEmphasis
};
const char* hk_general_labels[] =
@@ -73,12 +74,13 @@ const char* hk_general_labels[] =
"Toggle fullscreen",
"Close/open lid",
"Microphone",
- "Swap screens"
+ "Swap screens",
+ "Swap screen emphasis"
};
const int keypad_num = 12;
const int hk_addons_num = 2;
-const int hk_general_num = 9;
+const int hk_general_num = 10;
InputConfigDialog::InputConfigDialog(QWidget* parent) : QDialog(parent), ui(new Ui::InputConfigDialog)