-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathldtoypad.h
65 lines (50 loc) · 1.93 KB
/
ldtoypad.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <furi.h>
#include <furi_hal.h>
#include <gui/gui.h>
#include <gui/view.h>
#include <gui/view_dispatcher.h>
#include <gui/modules/submenu.h>
#include <gui/modules/widget.h>
// #include <notification/notification.h>
// #include <notification/notification_messages.h>
#include <gui/view_dispatcher.h>
#include <gui/modules/text_input.h>
#include <gui/modules/variable_item_list.h>
// Include the used views
// #include <gui/modules/submenu.h>
// #include <gui/modules/dialog_ex.h>
// #include "views/EmulateToyPad.h"
// #include "views/Settings.h"
#include "views/EmulateToyPad_scene.h"
typedef struct {
ViewDispatcher* view_dispatcher; // Switches between our views
// NotificationApp* notifications; // Used for controlling the backlight
Submenu* submenu; // The application menu
TextInput* text_input; // The text input screen
VariableItemList* variable_item_list_config; // The configuration screen
// View* view_game; // The main screen
LDToyPadSceneEmulate* view_scene_emulate; // The emulator screen
Widget* widget_about; // The about screen
// char* temp_buffer; // Temporary buffer for text input
// uint32_t temp_buffer_size; // Size of temporary buffer
Submenu* submenu_minifigure_selection; // The minifigure selection screen
Submenu* submenu_vehicle_selection; // The vehicle selection screen
} LDToyPadApp;
// Each view is a screen we show the user.
typedef enum {
ViewSubmenu, // The menu when the app starts
// ViewTextInput, // Input for configuring text settings
ViewConfigure, // The configuration screen
ViewEmulate, // The main screen
ViewAbout, // The about screen with directions, link to social channel, etc.
ViewMinifigureSelection, // The minifigure selection screen
ViewVehicleSelection, // The vehicle selection screen
} Views;
ViewDispatcher* get_view_dispatcher();
#ifdef __cplusplus
}
#endif