thrive/01_text_adventure/input.h
2025-01-02 20:57:00 -05:00

22 lines
379 B
C

#ifndef _FD_INPUT_
#define _FD_INPUT_
#include "game.h"
#include "log.h"
#define INPUT_BUFFER_MAX_LENGTH 80
typedef struct Input {
char input_buffer[INPUT_BUFFER_MAX_LENGTH];
int input_length;
Vector2 position;
Log *log;
GameState *gs;
} Input;
void handle_pressed_keys(Input*);
void draw_text(Input*);
Input *create_input(Vector2);
void free_input(Input*);
#endif