/// <summary> /// Scan for nearby handheld controller devices. /// </summary> /// <param name="pAutoConnect">After Scanning has completed, automatically choose the first device in the list and complete the BLE connection process. /// This is useful if you only expect there to be one device in the area.</param> public void Scan(bool pAutoConnect = true) { _controllerPlugin.Scan(pAutoConnect); // If the ControllerPlugin was set to AutoConnect, set BLE State to Connecting, otherwise Scanning. if (pAutoConnect) { SetBLEState(BLEStates.connecting); } else { SetBLEState(BLEStates.scanning); } IsBridgeInitialized = true; }