SDL_hid_ble_scan(3)

โœจ NAME โœจ

SDL_hid_ble_scan โ€” start or stop a BLE scan on iOS and tvOS so you can pair Steam Controllers ๐Ÿ’–


๐ŸŒธ SYNOPSIS ๐ŸŒธ

#include <SDL3/SDL_hidapi.h>

void SDL_hid_ble_scan(bool active);

๐ŸŽ€ FUNCTION PARAMETERS ๐ŸŽ€

  • active โ€” pass true to start the scan, pass false to stop the scan. That's literally it bestie, one lil bool doing all the work ๐Ÿซถ

๐Ÿ‘‘ AVAILABILITY ๐Ÿ‘‘

This function has been available since SDL 3.2.0 โœจ so if you're on anything older... no scan for you, sorry ๐Ÿ˜ญ


okay so real talk โ€” this one is short and sweet and it only does its thing on iOS and tvOS, it's giving very niche but very iconic ๐Ÿ’… BLE scan go brrr when active is true, and it chills when active is false. Steam Controllers, you are seen ๐ŸŽฎ๐Ÿ’œ


this page came to you straight from the lovely folks at Simple Directmedia Layer, running SDL 3.4.18 โ€” mwah, thanks for reading, ily, go pair something cute ๐Ÿฆ‹๐ŸŒธ๐ŸŽ€

๐Ÿ“ฆ where this page comes from