mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
add more Mac crap. hoping the weird characters made it through.
This commit is contained in:
@ -294,6 +294,7 @@ QString KeyMapButton::mappingText()
|
|||||||
QString isright = (key & (1<<31)) ? "Right " : "Left ";
|
QString isright = (key & (1<<31)) ? "Right " : "Left ";
|
||||||
key &= ~(1<<31);
|
key &= ~(1<<31);
|
||||||
|
|
||||||
|
#ifndef __APPLE__
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
case Qt::Key_Control: return isright + "Ctrl";
|
case Qt::Key_Control: return isright + "Ctrl";
|
||||||
@ -302,6 +303,15 @@ QString KeyMapButton::mappingText()
|
|||||||
case Qt::Key_Shift: return isright + "Shift";
|
case Qt::Key_Shift: return isright + "Shift";
|
||||||
case Qt::Key_Meta: return "Meta";
|
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);
|
QKeySequence seq(key);
|
||||||
QString ret = seq.toString(QKeySequence::NativeText);
|
QString ret = seq.toString(QKeySequence::NativeText);
|
||||||
|
Reference in New Issue
Block a user