Added hold function and updated doc
This commit is contained in:
+2
-7
@@ -61,13 +61,8 @@ public:
|
||||
CButton();
|
||||
|
||||
// Initialisierung (ersetzt Konstruktor-Parameter).
|
||||
// led_index = -1 → kein LED (Encoder-SW-Buttons).
|
||||
void init(uint8_t key_id, int8_t led_index, SAction action, RGB base = RGB());
|
||||
|
||||
// Hooks für Tastendruck/-loslassen.
|
||||
// Reserviert für zukünftige Logik (Hold-Aktionen, Toggle-Modus, …).
|
||||
void on_press();
|
||||
void on_release();
|
||||
void init(uint8_t key_id, int8_t led_index, SAction action,
|
||||
RGB base = RGB());
|
||||
|
||||
// ── LED Layer 1: base ─────────────────────────────────────────────────────
|
||||
// Idle-Farbe, aus NVM geladen oder von Windows-App gesetzt.
|
||||
|
||||
Reference in New Issue
Block a user