mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-14 06:07:21 -04:00
Add controller flags field with flags for controller location and update behavior
This commit is contained in:
1 parent
1967ec9526
commit
bb79fbfc07
5 files changed
+75
-5
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user