|
AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
|
Interface for Bluetooth LE keyboard functionality. More...
#include <i_ble_keyboard.h>
Public Member Functions | |
| virtual | ~IBleKeyboard ()=default |
| virtual void | begin ()=0 |
| Initializes the BLE keyboard. | |
| virtual bool | isConnected ()=0 |
| Checks if BLE keyboard is connected to a host. | |
| virtual void | write (uint8_t key)=0 |
| Sends a single key press. | |
| virtual void | write (const MediaKeyReport key)=0 |
| Sends a media key report. | |
| virtual void | print (const char *text)=0 |
| Sends a text string. | |
Interface for Bluetooth LE keyboard functionality.
Abstract interface that defines the contract for BLE keyboard operations. Allows for dependency injection and mocking in tests.
Definition at line 112 of file i_ble_keyboard.h.
|
virtualdefault |
|
pure virtual |
Initializes the BLE keyboard.
Starts BLE advertising and sets up the keyboard service.
Implemented in BleKeyboardAdapter, and BleKeyboardAdapter.
|
pure virtual |
Checks if BLE keyboard is connected to a host.
Implemented in BleKeyboardAdapter, and BleKeyboardAdapter.
|
pure virtual |
Sends a text string.
| text | Null-terminated string to send as keyboard input |
Implemented in BleKeyboardAdapter, and BleKeyboardAdapter.
|
pure virtual |
Sends a media key report.
| key | Media key report (2-byte array) |
Implemented in BleKeyboardAdapter, and BleKeyboardAdapter.
|
pure virtual |
Sends a single key press.
| key | USB HID key code to send |
Implemented in BleKeyboardAdapter, and BleKeyboardAdapter.