1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-21 02:33:24 +00:00

Removed context switches for sending packets

This commit is contained in:
Bryan Roe
2020-11-21 16:19:14 -08:00
parent 0f204ae725
commit 4d70ba0802
2 changed files with 11 additions and 80 deletions

View File

@@ -254,8 +254,6 @@ void KeyActionUnicode(uint16_t unicode, int up, Display *display)
mapping = kvm_keyboard_map_unicode_key(display, unicode, &exists);
if (mapping == 0)
{
ILIBLOGMESSAGEX("UNICODE: %u => DOES NOT EXIST", unicode);
if (g_keyboardMap[g_keyboardMapIndex] != 0)
{
mapping = g_keyboardMap[g_keyboardMapIndex] = kvm_keyboard_update_map_unicode_key(display, unicode, g_keyboardMap[g_keyboardMapIndex]); // Create a key mapping on an unmapped key
@@ -267,7 +265,6 @@ void KeyActionUnicode(uint16_t unicode, int up, Display *display)
}
if (mapping > 0)
{
ILIBLOGMESSAGEX("<<%d, EXISTS: %d>>", mapping, exists);
x11tst_exports->XTestFakeKeyEvent(display, mapping, 1, 0);
x11tst_exports->XTestFakeKeyEvent(display, mapping, 0, 15);
x11tst_exports->XFlush(display);