Add workaround for keyboard and UTF-8 events interfering with each other
This commit is contained in:
parent
921b59c467
commit
cfe75eb569
3 changed files with 26 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue