BLE-Gamepad-Client 0.3.2
Loading...
Searching...
No Matches
BLEControllerRegistry Class Reference

Static Public Member Functions

static bool init ()
 Initializes a BLEControllerRegistry.
static bool deinit ()
 Deinitializes a BLEControllerRegistry.
static bool isInitialized ()
 Checks if BLEControllerRegistry is initialized.
static void enableAutoScan ()
 Enables the auto-scan feature.
static void disableAutoScan ()
 Disables the auto-scan feature.
static bool isAutoScanEnabled ()
 Checks whether the auto-scan feature is enabled.
static void deleteBonds ()
 Deletes all stored bonding information.
static bool addControllerAdapter (const BLEControllerAdapter &adapter)
 Registers an adapter for a new controller type. Adapter is used to set up a connection and to decode raw data coming from the controller.

Friends

class BLEClientCallbacksImpl
class BLEScanCallbacksImpl
class BLEController

Member Function Documentation

◆ addControllerAdapter()

bool BLEControllerRegistry::addControllerAdapter ( const BLEControllerAdapter & adapter)
static

Registers an adapter for a new controller type. Adapter is used to set up a connection and to decode raw data coming from the controller.

Parameters
adapterAdapter to be added.
Returns
True if successful.

◆ deinit()

bool BLEControllerRegistry::deinit ( )
static

Deinitializes a BLEControllerRegistry.

Returns
True if successful.

◆ disableAutoScan()

void BLEControllerRegistry::disableAutoScan ( )
static

Disables the auto-scan feature.

Auto-scan automatically starts scanning whenever there are one or more BLEController instances that have been initialized with BLEController::begin() but are not yet connected. Scanning stops automatically once all BLEController instances are connected.

◆ enableAutoScan()

void BLEControllerRegistry::enableAutoScan ( )
static

Enables the auto-scan feature.

Auto-scan automatically starts scanning whenever there are one or more BLEController instances that have been initialized with BLEController::begin() but are not yet connected. Scanning stops automatically once all BLEController instances are connected.

◆ init()

bool BLEControllerRegistry::init ( )
static

Initializes a BLEControllerRegistry.

Returns
True if successful.

◆ isAutoScanEnabled()

bool BLEControllerRegistry::isAutoScanEnabled ( )
static

Checks whether the auto-scan feature is enabled.

Auto-scan automatically starts scanning whenever there are one or more BLEController instances that have been initialized with BLEController::begin() but are not yet connected. Scanning stops automatically once all BLEController instances are connected.

Returns
True if auto-scan is enabled; false otherwise.

◆ isInitialized()

bool BLEControllerRegistry::isInitialized ( )
static

Checks if BLEControllerRegistry is initialized.

Returns
True if initialized; false otherwise.

The documentation for this class was generated from the following files: