flipperzero-firmware/applications/irda/irda_app_event.h

29 lines
515 B
C
Raw Normal View History

#pragma once
#include <irda.h>
#include <gui/modules/dialog_ex.h>
class IrdaAppEvent {
public:
enum class Type : uint8_t {
Tick,
Exit,
Back,
MenuSelected,
MenuSelectedPress,
MenuSelectedRelease,
DialogExSelected,
NextScene,
IrdaMessageReceived,
TextEditDone,
PopupTimer,
ButtonPanelPressed,
};
union {
int32_t menu_index;
DialogExResult dialog_ex_result;
} payload;
Type type;
};