Add controller flags field with flags for controller location and update behavior

This commit is contained in:
Adam Honse committed 2025-02-06 20:00:27 -06:00
1 parent 1967ec9526
commit bb79fbfc07
5 files changed
+75 -5

No files matched your search

+6
View File
@@ -593,6 +593,12 @@ void NetworkClient::ProcessReply_ControllerData(unsigned int data_size, char * d
new_controller->ReadDeviceDescription((unsigned char *)data, GetProtocolVersion());
/*-----------------------------------------------------*\
| Mark this controller as remote owned |
\*-----------------------------------------------------*/
new_controller->flags &= ~CONTROLLER_FLAG_LOCAL;
new_controller->flags |= CONTROLLER_FLAG_REMOTE;
ControllerListMutex.lock();
if(dev_idx >= server_controllers.size())