mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
[FL-1250, FL-1252, FL-1323, FL-1324] New IRDA Application (part 1) (#497)
* 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>
This commit is contained in:
26
applications/irda/irda-app-event.hpp
Normal file
26
applications/irda/irda-app-event.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user