mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-06 05:11:11 -05:00
Add controller flags field with flags for controller location and update behavior
This commit is contained in:
@@ -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