mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-24 05:31:13 +00:00
Don't use GFE modifier workaround with Sunshine
This commit is contained in:
@@ -731,6 +731,7 @@ int LiSendKeyboardEvent2(short keyCode, char keyAction, char modifiers, char fla
|
|||||||
// GFE will synthesize an errant key down event for the non-extended key, causing that key to be
|
// GFE will synthesize an errant key down event for the non-extended key, causing that key to be
|
||||||
// stuck down after the extended modifier key is raised. For non-extended keys, we must set the
|
// stuck down after the extended modifier key is raised. For non-extended keys, we must set the
|
||||||
// MODIFIER flag for correct behavior.
|
// MODIFIER flag for correct behavior.
|
||||||
|
if (!IS_SUNSHINE()) {
|
||||||
switch (keyCode & 0xFF) {
|
switch (keyCode & 0xFF) {
|
||||||
case 0x5B: // VK_LWIN
|
case 0x5B: // VK_LWIN
|
||||||
case 0x5C: // VK_RWIN
|
case 0x5C: // VK_RWIN
|
||||||
@@ -767,6 +768,7 @@ int LiSendKeyboardEvent2(short keyCode, char keyAction, char modifiers, char fla
|
|||||||
// No fixups
|
// No fixups
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
holder->packet.keyboard.header.size = BE32(sizeof(NV_KEYBOARD_PACKET) - sizeof(uint32_t));
|
holder->packet.keyboard.header.size = BE32(sizeof(NV_KEYBOARD_PACKET) - sizeof(uint32_t));
|
||||||
holder->packet.keyboard.header.magic = LE32((uint32_t)keyAction);
|
holder->packet.keyboard.header.magic = LE32((uint32_t)keyAction);
|
||||||
|
|||||||
Reference in New Issue
Block a user