sdlHidBleScan function

void sdlHidBleScan(
  1. bool active
)

Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers.

\param active true to start the scan, false to stop the scan.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_hid_ble_scan(bool active)

Implementation

void sdlHidBleScan(bool active) {
  final sdlHidBleScanLookupFunction = libSdl3.lookupFunction<
      Void Function(Uint8 active),
      void Function(int active)>('SDL_hid_ble_scan');
  return sdlHidBleScanLookupFunction(active ? 1 : 0);
}