aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/InputConfigDialog.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2021-04-25 11:53:29 +0200
committerArisotura <thetotalworm@gmail.com>2021-04-25 11:53:29 +0200
commit18497d396d61c08d4aee215f13bf34eb99d1d471 (patch)
tree881fdeb1344d3270b7d1b324381f95ccc9f1b1f9 /src/frontend/qt_sdl/InputConfigDialog.cpp
parent185c97f4ef71c5fdf96bf8cde820850d5035ba9a (diff)
add more Mac crap. hoping the weird characters made it through.
Diffstat (limited to 'src/frontend/qt_sdl/InputConfigDialog.cpp')
-rw-r--r--src/frontend/qt_sdl/InputConfigDialog.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/InputConfigDialog.cpp b/src/frontend/qt_sdl/InputConfigDialog.cpp
index bd39e33..9947627 100644
--- a/src/frontend/qt_sdl/InputConfigDialog.cpp
+++ b/src/frontend/qt_sdl/InputConfigDialog.cpp
@@ -294,6 +294,7 @@ QString KeyMapButton::mappingText()
QString isright = (key & (1<<31)) ? "Right " : "Left ";
key &= ~(1<<31);
+#ifndef __APPLE__
switch (key)
{
case Qt::Key_Control: return isright + "Ctrl";
@@ -302,6 +303,15 @@ QString KeyMapButton::mappingText()
case Qt::Key_Shift: return isright + "Shift";
case Qt::Key_Meta: return "Meta";
}
+#else
+ switch (key)
+ {
+ case Qt::Key_Control: return isright + "⌘";
+ case Qt::Key_Alt: return isright + "⌥";
+ case Qt::Key_Shift: return isright + "⇧";
+ case Qt::Key_Meta: return isright + "⌃";
+ }
+#endif
QKeySequence seq(key);
QString ret = seq.toString(QKeySequence::NativeText);