Add workaround for keyboard and UTF-8 events interfering with each other

This commit is contained in:
Cameron Gutman
2022-01-17 21:56:06 -06:00
parent 921b59c467
commit cfe75eb569
3 changed files with 26 additions and 0 deletions

View File

@@ -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;