handle mouse events

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-06-09 00:17:54 +02:00
parent 60fccfeccc
commit 266114d046
53 changed files with 1144 additions and 1008 deletions

View File

@@ -1,23 +1,17 @@
#include "data/MenuItem.h"
MenuItem::MenuItem(const uint8_t type, std::string text, std::function<void(uint8_t)> callback)
: m_type(type)
, m_text(std::move(text))
, m_callback(std::move(callback)) {
: m_type(type), m_text(std::move(text)), m_callback(std::move(callback))
{
}
MenuItem::MenuItem(
const uint8_t type,
std::string text,
std::string value,
std::function<void(uint8_t)> callback)
: m_type(type)
, m_text(std::move(text))
, m_value(std::move(value))
, m_callback(std::move(callback)) {
MenuItem::MenuItem(const uint8_t type, std::string text, std::string value, std::function<void(uint8_t)> callback)
: m_type(type), m_text(std::move(text)), m_value(std::move(value)), m_callback(std::move(callback))
{
}
uint8_t MenuItem::getType() const {
uint8_t MenuItem::getType() const
{
return m_type;
}