Files
flipper-bluepp/ble_hid_host/hid_decode.h
T
andy b1efa9cd4e Add BLE HID Host app; share the central layer via libble/
Extract the reusable BLE central/GATT client and name/value decoders into
libble/ (moved out of bt_inspector). build.sh now stages libble/*.{c,h}
into each app dir at build time and builds every app in APPS=(...).

New app ble_hid_host: connects to a BLE keyboard or mouse, discovers the
HID service (0x1812), sets protocol mode (boot when offered, else report),
subscribes to the input-report characteristics, and decodes keyboard
(modifiers + key names) and mouse (buttons + dx/dy/wheel) reports live.
Events scroll on screen and are logged with raw bytes to
apps_data/ble_hid_host/. No pairing, so encryption-gated keyboards stay
silent; open devices and most mice work. Both faps build and pass APPCHK.
2026-09-11 13:14:57 +01:00

9 lines
294 B
C

#pragma once
#include <furi.h>
#include <stdint.h>
// Human-readable name for a USB HID keyboard usage id (0 => NULL).
const char* hid_key_name(uint8_t usage);
// Append active modifier names ("Ctrl+Shift+") for a boot-keyboard modifier byte.
void hid_mods_str(FuriString* out, uint8_t mods);