mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-22 05:14:46 -07:00
Move plugins to external folder
This commit is contained in:
24
applications/external/game15/sandbox.h
vendored
Normal file
24
applications/external/game15/sandbox.h
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <input/input.h>
|
||||
|
||||
typedef enum {
|
||||
EventTypeTick,
|
||||
EventTypeKey,
|
||||
} EventType;
|
||||
|
||||
typedef struct {
|
||||
EventType type;
|
||||
InputEvent input;
|
||||
} GameEvent;
|
||||
|
||||
typedef void (*SandboxRenderCallback)(Canvas* canvas);
|
||||
typedef void (*SandboxEventHandler)(GameEvent event);
|
||||
|
||||
void sandbox_init(
|
||||
uint8_t fps,
|
||||
SandboxRenderCallback render_callback,
|
||||
SandboxEventHandler event_handler);
|
||||
void sandbox_loop();
|
||||
void sandbox_loop_exit();
|
||||
void sandbox_free();
|
||||
Reference in New Issue
Block a user