mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 15:25:35 +00:00
when sending CTRL+ALT+SHIFT+Q key sequence for disconnecting from the remote host, always send a keydown event to avoid leaving the remote host keyboard in key_UP state. (seen with Geforce Experience 3.17)
This commit is contained in:
parent
ecf09e8907
commit
fe1c203b10
@ -229,6 +229,10 @@ static bool evdev_handle_event(struct input_event *ev, struct input_device *dev)
|
||||
// Quit the stream if all the required quit keys are down
|
||||
if ((dev->modifiers & ACTION_MODIFIERS) == ACTION_MODIFIERS &&
|
||||
ev->code == QUIT_KEY && ev->value != 0) {
|
||||
|
||||
short code = 0x80 << 8 | keyCodes[ev->code];
|
||||
LiSendKeyboardEvent(code, KEY_ACTION_DOWN, 0);
|
||||
usleep(1000000);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user