getControllerCount method
Get the number of controllers connected to the server.
Implementation
int getControllerCount() {
_send(CommandId.requestControllerCount, Uint8List(0));
final payload = readPkt();
final payloadByteData = ByteData.sublistView(payload.restOfPkt);
final count = payloadByteData.getUint32(0, Endian.little);
_controllerCount = count;
return count;
}