v1.1 - Add scan code (needs refactor)
This commit is contained in:
@@ -37,6 +37,7 @@ typedef enum {
|
||||
WiegandMainMenuScene,
|
||||
WiegandInstructionsScene,
|
||||
WiegandReadScene,
|
||||
WiegandScanScene,
|
||||
WiegandDataScene,
|
||||
WiegandSaveScene,
|
||||
WiegandLoadScene,
|
||||
@@ -64,6 +65,7 @@ typedef struct App {
|
||||
typedef enum {
|
||||
WiegandMainMenuInstructions,
|
||||
WiegandMainMenuRead,
|
||||
WiegandMainMenuScan,
|
||||
WiegandMainMenuLoad,
|
||||
} WiegandMainMenuSceneIndex;
|
||||
|
||||
@@ -71,6 +73,7 @@ typedef enum {
|
||||
WiegandMainMenuUnknownEvent,
|
||||
WiegandMainMenuInstructionsEvent,
|
||||
WiegandMainMenuReadEvent,
|
||||
WiegandMainMenuScanEvent,
|
||||
WiegandMainMenuLoadEvent,
|
||||
} WiegandMainMenuEvent;
|
||||
|
||||
@@ -119,6 +122,10 @@ void wiegand_load_scene_on_enter(void* context);
|
||||
bool wiegand_custom_callback(void* context, uint32_t custom_event);
|
||||
bool wiegand_back_event_callback(void* context);
|
||||
|
||||
void wiegand_scan_scene_on_enter(void* context);
|
||||
//bool wiegand_scan_scene_on_event(void* context, SceneManagerEvent event);
|
||||
void wiegand_scan_scene_on_exit(void* context);
|
||||
|
||||
// Methods with no implementation.
|
||||
bool wiegand_empty_scene_on_event(void* context, SceneManagerEvent event);
|
||||
void wiegand_empty_scene_on_exit(void* _ctx);
|
||||
|
||||
Reference in New Issue
Block a user