27 lines
438 B
C++
27 lines
438 B
C++
|
#pragma once
|
||
|
#include <stdint.h>
|
||
|
#include <irda.h>
|
||
|
#include <gui/modules/dialog_ex.h>
|
||
|
|
||
|
class IrdaAppEvent {
|
||
|
public:
|
||
|
enum class Type : uint8_t {
|
||
|
Tick,
|
||
|
Back,
|
||
|
MenuSelected,
|
||
|
DialogExSelected,
|
||
|
NextScene,
|
||
|
IrdaMessageReceived,
|
||
|
TextEditDone,
|
||
|
PopupTimer,
|
||
|
};
|
||
|
|
||
|
union {
|
||
|
int32_t menu_index;
|
||
|
DialogExResult dialog_ex_result;
|
||
|
} payload;
|
||
|
|
||
|
Type type;
|
||
|
};
|
||
|
|