mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 07:43:50 +00:00
1. Adding missing definition for MNG_KVM_KEY_UNICODE
2. Updated Windows Unicode KeyPress 3. Fixed bug with self update that causes update to fail for older service installations
This commit is contained in:
@@ -381,9 +381,7 @@ void KeyActionUnicode(WORD unicode, int up)
|
||||
key.type = INPUT_KEYBOARD;
|
||||
key.ki.wVk = 0;
|
||||
key.ki.dwFlags = KEYEVENTF_UNICODE;
|
||||
if (up == 1) key.ki.dwFlags = KEYEVENTF_KEYUP; // 1 = UP
|
||||
else if (up == 3) key.ki.dwFlags = KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP; // 3 = EXUP
|
||||
else if (up == 4) key.ki.dwFlags = KEYEVENTF_EXTENDEDKEY; // 4 = EXDOWN
|
||||
if (up == 1) key.ki.dwFlags |= KEYEVENTF_KEYUP; // 1 = UP
|
||||
key.ki.time = 0;
|
||||
key.ki.wScan = unicode;
|
||||
key.ki.dwExtraInfo = GetMessageExtraInfo();
|
||||
|
||||
Reference in New Issue
Block a user