mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-22 02:33:10 +00:00
31c31db479
* Add new IrdaApp (half ready), add ButtonMenu * Fix NEC's extension * clang-format * Fix leak * Add submenu optional header * IRDA: add Edit button * clang-format * IrdaApp: Fix scene flow * Add IRDA NEC extended protocol * IRDA: Add address/command length Co-authored-by: SG <who.just.the.doctor@gmail.com>
26 lines
438 B
C++
26 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;
|
|
};
|
|
|