mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 19:28:36 -07:00
more apps
This commit is contained in:
25
applications/plugins/chip8/scenes/chip8_scene.h
Normal file
25
applications/plugins/chip8/scenes/chip8_scene.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <gui/scene_manager.h>
|
||||
|
||||
#define ADD_SCENE(prefix, name, id) Chip8Scene##id,
|
||||
typedef enum {
|
||||
#include "chip8_scene_config.h"
|
||||
Chip8SceneNum,
|
||||
} Chip8Scene;
|
||||
#undef ADD_SCENE
|
||||
|
||||
extern const SceneManagerHandlers chip8_scene_handlers;
|
||||
|
||||
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_enter(void*);
|
||||
#include "chip8_scene_config.h"
|
||||
#undef ADD_SCENE
|
||||
|
||||
#define ADD_SCENE(prefix, name, id) \
|
||||
bool prefix##_scene_##name##_on_event(void* context, SceneManagerEvent event);
|
||||
#include "chip8_scene_config.h"
|
||||
#undef ADD_SCENE
|
||||
|
||||
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_exit(void* context);
|
||||
#include "chip8_scene_config.h"
|
||||
#undef ADD_SCENE
|
||||
Reference in New Issue
Block a user