Skip to content

Commit 48402ed

Browse files
committed
Add definition for SDL_hid_ble_scan()
1 parent 4036ef6 commit 48402ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

units/sdlhidapi.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,13 @@ function SDL_hid_get_serial_number_string(dev: PSDL_hid_device; str: pcwchar_t;
415415
*)
416416
function SDL_hid_get_indexed_string(dev: PSDL_hid_device; string_index: cint; str: pcwchar_t; maxlen: csize_t): cint; cdecl;
417417
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_hid_get_indexed_string' {$ENDIF} {$ENDIF};
418+
419+
(**
420+
* Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers
421+
*
422+
* \param active SDL_TRUE to start the scan, SDL_FALSE to stop the scan
423+
*
424+
* \since This function is available since SDL 2.0.18.
425+
*)
426+
procedure SDL_hid_ble_scan(active: TSDL_bool); cdecl;
427+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_hid_ble_scan' {$ENDIF} {$ENDIF};

0 commit comments

Comments
 (0)