ESPHome 2026.5.0
Loading...
Searching...
No Matches
key_provider.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::key_provider {
7
10 public:
11 template<typename F> void add_on_key_callback(F &&callback) { this->key_callback_.add(std::forward<F>(callback)); }
12
13 protected:
14 void send_key_(uint8_t key);
15
17};
18
19} // namespace esphome::key_provider
interface for components that provide keypresses
Definition key_provider.h:9
void add_on_key_callback(F &&callback)
CallbackManager< void(uint8_t)> key_callback_