mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-25 21:40:24 +00:00
Send UTF-8 events on the keyboard channel
This avoids racing with regular keyboard events that could affect the input.
This commit is contained in:
1 parent
342b106bbb
commit
4a95eb35b2
2 files changed
+1
-2
No files matched your search
+1
-1
@@ -980,7 +980,7 @@ int LiSendUtf8TextEvent(const char *text, unsigned int length) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
holder->channelId = CTRL_CHANNEL_UTF8;
|
holder->channelId = CTRL_CHANNEL_KEYBOARD;
|
||||||
holder->enetPacketFlags = ENET_PACKET_FLAG_RELIABLE;
|
holder->enetPacketFlags = ENET_PACKET_FLAG_RELIABLE;
|
||||||
|
|
||||||
// Magic + string length
|
// Magic + string length
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ extern uint32_t EncryptionFeaturesEnabled;
|
|||||||
#define CTRL_CHANNEL_MOUSE 0x03
|
#define CTRL_CHANNEL_MOUSE 0x03
|
||||||
#define CTRL_CHANNEL_PEN 0x04
|
#define CTRL_CHANNEL_PEN 0x04
|
||||||
#define CTRL_CHANNEL_TOUCH 0x05
|
#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_GAMEPAD_BASE 0x10 // 0x10 to 0x1F by controller index
|
||||||
#define CTRL_CHANNEL_SENSOR_BASE 0x20 // 0x20 to 0x2F by controller index
|
#define CTRL_CHANNEL_SENSOR_BASE 0x20 // 0x20 to 0x2F by controller index
|
||||||
#define CTRL_CHANNEL_COUNT 0x30
|
#define CTRL_CHANNEL_COUNT 0x30
|
||||||
|
|||||||
Reference in new issue
Block a user