Files
bobbycar-boardcomputer-firm…/main/displays/bobbydisplay.cpp
T

30 lines
717 B
C++
Raw Normal View History

2021-12-28 01:06:25 +01:00
#include "bobbydisplay.h"
// local includes
#include "bobbybuttons.h"
2021-12-28 01:06:25 +01:00
void BobbyDisplay::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 01:06:25 +01:00
}
void BobbyDisplay::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 01:06:25 +01:00
}
void BobbyDisplay::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 01:06:25 +01:00
}
void BobbyDisplay::buttonReleased(espgui::Button button)
{
2021-12-28 13:41:12 +01:00
//Base::buttonReleased(button);
2022-03-24 22:45:57 +01:00
buttonReleasedCommon(button);
2021-12-28 01:06:25 +01:00
}