aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.h
blob: 27da080cdccc09f0c09180e9246005f7b7ecac9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef GBC_RENDER_H
#define GBC_RENDER_H

#include "gb.h"

void term_init(void);
void term_restore(void);
void render_frame(GB *gb);
void render_force_full(void);   // force a complete repaint next frame
// Poll keyboard + control FIFO, update gb->buttons. False if quit requested.
bool input_poll(GB *gb);

// Optional external control channel: a named pipe (FIFO) that accepts button
// commands (see README). Safe to call once at startup.
void input_open_fifo(const char *path);
void input_close_fifo(void);

#endif