mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 09:25:30 -04:00
Long button press support (#1188)
This commit is contained in:
parent
199570d4a5
commit
407fee23b9
6 changed files with 112 additions and 20 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue