ESPHome 2025.5.0
Loading...
Searching...
No Matches
key_provider.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace key_provider {
8
11 public:
12 void add_on_key_callback(std::function<void(uint8_t)> &&callback);
13
14 protected:
15 void send_key_(uint8_t key);
16
18};
19
20} // namespace key_provider
21} // namespace esphome
interface for components that provide keypresses
void add_on_key_callback(std::function< void(uint8_t)> &&callback)
CallbackManager< void(uint8_t)> key_callback_
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7