Long button press support (#1188)

This commit is contained in:
Mark Thompson 2023-06-25 04:32:37 -05:00 committed by GitHub
parent 199570d4a5
commit 407fee23b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 112 additions and 20 deletions

View file

@ -27,6 +27,7 @@
#include "touch.hpp"
// Must be same values as in ui::KeyEvent
enum class Switch {
Right = 0,
Left = 1,
@ -44,6 +45,8 @@ void controls_init();
SwitchesState get_switches_state();
EncoderPosition get_encoder_position();
touch::Frame get_touch_frame();
void switches_long_press_enable(SwitchesState v);
bool switch_long_press_occurred(size_t v);
namespace control {
namespace debug {