Removed single, double and triple click handlers from encoder

pull/274/head
Stephen Brown 3 years ago
parent 1a9eddaf05
commit 393ced10d6
  1. 2
      src/uibuttons.h
  2. 12
      src/userinterface.cpp

@ -84,8 +84,6 @@ private:
uint16_t m_debounceTimer;
// Number of clicks recorded since last timer reset
uint8_t m_numClicks;
public:
// Event to fire on click
BtnEvent m_clickEvent;
// Event to fire on double click

@ -233,18 +233,6 @@ void CUserInterface::EncoderEventHandler (CKY040::TEvent Event)
: CUIMenu::MenuEventStepDown);
break;
case CKY040::EventSwitchClick:
m_Menu.EventHandler (CUIMenu::MenuEventBack);
break;
case CKY040::EventSwitchDoubleClick:
m_Menu.EventHandler (CUIMenu::MenuEventSelect);
break;
case CKY040::EventSwitchTripleClick:
m_Menu.EventHandler (CUIMenu::MenuEventHome);
break;
case CKY040::EventSwitchHold:
if (m_pRotaryEncoder->GetHoldSeconds () >= 120)
{

Loading…
Cancel
Save