Implemented the hupe

This commit is contained in:
CommanderRedYT
2022-03-24 22:09:51 +01:00
parent 8c69ab02d5
commit e7730d0a20
8 changed files with 153 additions and 26 deletions

View File

@@ -80,6 +80,20 @@ void buttonPressedCommon(espgui::Button button)
}
}
void buttonReleasedCommon(espgui::Button button)
{
switch (BobbyButton(button))
{
case BobbyButton::Left2:
case BobbyButton::Right2:
case BobbyButton::Up2:
case BobbyButton::Down2:
quickactions::handle_bobby_quickaction(button, false);
break;
default:;
}
}
void BobbyButtons::rawButtonPressed(uint8_t button)
{
//Base::rawButtonPressed(button);
@@ -103,4 +117,5 @@ void BobbyButtons::buttonPressed(espgui::Button button)
void BobbyButtons::buttonReleased(espgui::Button button)
{
//Base::buttonReleased(button);
buttonReleasedCommon(button);
}