sdlHidBleScan function

void sdlHidBleScan(
  1. bool active
)

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

\param active SDL_TRUE to start the scan, SDL_FALSE to stop the scan

\since This function is available since SDL 2.0.18.

extern DECLSPEC void SDLCALL SDL_hid_ble_scan(SDL_bool active)

Implementation

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