Let AI refactor everything and see if it breaks.
This commit is contained in:
23
include/game_input.h
Normal file
23
include/game_input.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef GAME_INPUT_H
|
||||
#define GAME_INPUT_H
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
#include "game_audio.h"
|
||||
#include "game_render.h"
|
||||
#include "game_state.h"
|
||||
|
||||
struct InputContext {
|
||||
GameState *state = nullptr;
|
||||
RenderAssets *renderAssets = nullptr;
|
||||
AudioContext *audio = nullptr;
|
||||
|
||||
volatile bool *internals = nullptr;
|
||||
PrintConsole *topScreen = nullptr;
|
||||
|
||||
void (*init_game)() = nullptr;
|
||||
};
|
||||
|
||||
bool handle_input_frame(InputContext &ctx);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user