mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-20 06:39:52 +00:00
Add support for Applications (context menu) key in the Windows platform
I will add corresponding support in moonlight-qt.
This commit is contained in:
parent
f3871c4449
commit
d075424225
@ -1228,6 +1228,10 @@ namespace input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (auto &kp : key_press) {
|
for (auto &kp : key_press) {
|
||||||
|
if (!kp.second) {
|
||||||
|
// already released
|
||||||
|
continue;
|
||||||
|
}
|
||||||
platf::keyboard(platf_input, vk_from_kpid(kp.first) & 0x00FF, true, flags_from_kpid(kp.first));
|
platf::keyboard(platf_input, vk_from_kpid(kp.first) & 0x00FF, true, flags_from_kpid(kp.first));
|
||||||
key_press[kp.first] = false;
|
key_press[kp.first] = false;
|
||||||
}
|
}
|
||||||
|
@ -516,6 +516,7 @@ namespace platf {
|
|||||||
case VK_LEFT:
|
case VK_LEFT:
|
||||||
case VK_RIGHT:
|
case VK_RIGHT:
|
||||||
case VK_DIVIDE:
|
case VK_DIVIDE:
|
||||||
|
case VK_APPS:
|
||||||
ki.dwFlags |= KEYEVENTF_EXTENDEDKEY;
|
ki.dwFlags |= KEYEVENTF_EXTENDEDKEY;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user