mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Don't set MODIFIER_META when meta key is disabled
This commit is contained in:
@@ -20,6 +20,10 @@
|
|||||||
#define VK_NUMPAD0 0x60
|
#define VK_NUMPAD0 0x60
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Until we can fully capture these on all platforms (without conflicting with
|
||||||
|
// OS-provided shortcuts), we should avoid passing them through to the host.
|
||||||
|
//#define ENABLE_META
|
||||||
|
|
||||||
#define MOUSE_POLLING_INTERVAL 5
|
#define MOUSE_POLLING_INTERVAL 5
|
||||||
|
|
||||||
// How long the fingers must be stationary to start a right click
|
// How long the fingers must be stationary to start a right click
|
||||||
@@ -371,9 +375,11 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
|||||||
if (event->keysym.mod & KMOD_SHIFT) {
|
if (event->keysym.mod & KMOD_SHIFT) {
|
||||||
modifiers |= MODIFIER_SHIFT;
|
modifiers |= MODIFIER_SHIFT;
|
||||||
}
|
}
|
||||||
|
#ifdef ENABLE_META
|
||||||
if (event->keysym.mod & KMOD_GUI) {
|
if (event->keysym.mod & KMOD_GUI) {
|
||||||
modifiers |= MODIFIER_META;
|
modifiers |= MODIFIER_META;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Set keycode. We explicitly use scancode here because GFE will try to correct
|
// Set keycode. We explicitly use scancode here because GFE will try to correct
|
||||||
// for AZERTY layouts on the host but it depends on receiving VK_ values matching
|
// for AZERTY layouts on the host but it depends on receiving VK_ values matching
|
||||||
@@ -514,9 +520,7 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
|||||||
case SDL_SCANCODE_RALT:
|
case SDL_SCANCODE_RALT:
|
||||||
keyCode = 0xA5;
|
keyCode = 0xA5;
|
||||||
break;
|
break;
|
||||||
// Until we can fully capture these on all platforms (without conflicting with
|
#ifdef ENABLE_META
|
||||||
// OS-provided shortcuts), we should avoid passing them through to the host.
|
|
||||||
#if 0
|
|
||||||
case SDL_SCANCODE_LGUI:
|
case SDL_SCANCODE_LGUI:
|
||||||
keyCode = 0x5B;
|
keyCode = 0x5B;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user