Files
snakePlus/include/game_input.h

24 lines
438 B
C

#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