Double MSP (TLM and MAVLink) throughput for Gemini hardware (#3037)
[ExpressLRS.git] / src / lib / BUTTON / devButton.h
blobd81a22d63e5a4c93b1da6c154033e66a6c1b864e
1 #pragma once
3 #include "device.h"
4 #include "common.h"
6 typedef void (*ButtonAction_fn)();
8 extern device_t Button_device;
10 #include <list>
11 #include <map>
13 typedef struct action {
14 uint8_t button;
15 bool longPress;
16 uint8_t count;
17 action_e action;
18 } action_t;
20 void registerButtonFunction(action_e action, ButtonAction_fn function);
21 size_t button_GetActionCnt();