mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-11 02:06:15 +00:00
Add workaround for keyboard and UTF-8 events interfering with each other
This commit is contained in:
@@ -1116,6 +1116,20 @@ int sendInputPacketOnControlStream(unsigned char* data, int length) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool isControlDataInTransit(void) {
|
||||
bool ret = false;
|
||||
|
||||
PltLockMutex(&enetMutex);
|
||||
if (peer != NULL && peer->state == ENET_PEER_STATE_CONNECTED) {
|
||||
if (peer->reliableDataInTransit != 0) {
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
PltUnlockMutex(&enetMutex);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool LiGetEstimatedRttInfo(uint32_t* estimatedRtt, uint32_t* estimatedRttVariance) {
|
||||
bool ret = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user