2021-06-02 15:16:05 +00:00
|
|
|
#pragma once
|
|
|
|
#include <irda.h>
|
|
|
|
#include <gui/modules/dialog_ex.h>
|
|
|
|
|
|
|
|
class IrdaAppEvent {
|
|
|
|
public:
|
|
|
|
enum class Type : uint8_t {
|
|
|
|
Tick,
|
2021-07-16 16:50:18 +00:00
|
|
|
Exit,
|
2021-06-02 15:16:05 +00:00
|
|
|
Back,
|
|
|
|
MenuSelected,
|
2021-08-11 17:51:06 +00:00
|
|
|
MenuSelectedPress,
|
|
|
|
MenuSelectedRelease,
|
2021-06-02 15:16:05 +00:00
|
|
|
DialogExSelected,
|
|
|
|
NextScene,
|
|
|
|
IrdaMessageReceived,
|
|
|
|
TextEditDone,
|
|
|
|
PopupTimer,
|
2021-06-25 13:52:27 +00:00
|
|
|
ButtonPanelPressed,
|
2021-06-02 15:16:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
union {
|
|
|
|
int32_t menu_index;
|
|
|
|
DialogExResult dialog_ex_result;
|
|
|
|
} payload;
|
|
|
|
|
|
|
|
Type type;
|
|
|
|
};
|