2021-12-28 02:06:24 +01:00
|
|
|
#include "bobbydisplaywithtitle.h"
|
|
|
|
|
|
2021-12-29 21:53:47 +01:00
|
|
|
// local includes
|
|
|
|
|
#include "bobbybuttons.h"
|
|
|
|
|
|
2021-12-28 02:06:24 +01:00
|
|
|
void BobbyDisplayWithTitle::rawButtonPressed(uint8_t button)
|
|
|
|
|
{
|
2021-12-28 13:08:54 +01:00
|
|
|
//Base::rawButtonPressed(button);
|
2021-12-29 18:09:57 +01:00
|
|
|
if (const auto translated = translateRawButton(button))
|
|
|
|
|
buttonPressed(*translated);
|
2021-12-28 02:06:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void BobbyDisplayWithTitle::rawButtonReleased(uint8_t button)
|
|
|
|
|
{
|
2021-12-28 13:08:54 +01:00
|
|
|
//Base::rawButtonReleased(button);
|
2021-12-29 18:09:57 +01:00
|
|
|
if (const auto translated = translateRawButton(button))
|
|
|
|
|
buttonReleased(*translated);
|
2021-12-28 02:06:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void BobbyDisplayWithTitle::buttonPressed(espgui::Button button)
|
|
|
|
|
{
|
2021-12-28 13:41:12 +01:00
|
|
|
//Base::buttonPressed(button);
|
2021-12-29 18:09:57 +01:00
|
|
|
buttonPressedCommon(button);
|
2021-12-28 02:06:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void BobbyDisplayWithTitle::buttonReleased(espgui::Button button)
|
|
|
|
|
{
|
2021-12-28 13:41:12 +01:00
|
|
|
//Base::buttonReleased(button);
|
2022-09-08 22:27:47 +02:00
|
|
|
buttonReleasedCommon(button);
|
2021-12-28 02:06:24 +01:00
|
|
|
}
|