mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
Fix macOS right modifier detection.
Turns out my system was affected by a bug with modifier remapping in macOS causing some of my left/right modifiers to be swapped. This commit fixes them to be the correct values.
This commit is contained in:
@ -240,7 +240,7 @@ bool IsRightModKey(QKeyEvent* event)
|
|||||||
bool IsRightModKey(QKeyEvent* event)
|
bool IsRightModKey(QKeyEvent* event)
|
||||||
{
|
{
|
||||||
quint32 scan = event->nativeVirtualKey();
|
quint32 scan = event->nativeVirtualKey();
|
||||||
return (scan == 0x37 || scan == 0x3A || scan == 0x3C || scan == 0x3E);
|
return (scan == 0x36 || scan == 0x3C || scan == 0x3D || scan == 0x3E);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
bool IsRightModKey(QKeyEvent* event)
|
bool IsRightModKey(QKeyEvent* event)
|
||||||
|
Reference in New Issue
Block a user