From 4a95eb35b2d223419afd51a226996ff00db89bc2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 19 Oct 2026 01:25:18 -0500 Subject: [PATCH] Send UTF-8 events on the keyboard channel This avoids racing with regular keyboard events that could affect the input. --- src/InputStream.c | 2 +- src/Limelight-internal.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/InputStream.c b/src/InputStream.c index 3b56098..864d1c9 100644 --- a/src/InputStream.c +++ b/src/InputStream.c @@ -980,7 +980,7 @@ int LiSendUtf8TextEvent(const char *text, unsigned int length) { return -1; } - holder->channelId = CTRL_CHANNEL_UTF8; + holder->channelId = CTRL_CHANNEL_KEYBOARD; holder->enetPacketFlags = ENET_PACKET_FLAG_RELIABLE; // Magic + string length diff --git a/src/Limelight-internal.h b/src/Limelight-internal.h index e1314c5..8927353 100644 --- a/src/Limelight-internal.h +++ b/src/Limelight-internal.h @@ -60,7 +60,6 @@ extern uint32_t EncryptionFeaturesEnabled; #define CTRL_CHANNEL_MOUSE 0x03 #define CTRL_CHANNEL_PEN 0x04 #define CTRL_CHANNEL_TOUCH 0x05 -#define CTRL_CHANNEL_UTF8 0x06 #define CTRL_CHANNEL_GAMEPAD_BASE 0x10 // 0x10 to 0x1F by controller index #define CTRL_CHANNEL_SENSOR_BASE 0x20 // 0x20 to 0x2F by controller index #define CTRL_CHANNEL_COUNT 0x30