maug
Quick and dirty C mini-augmentation library.
|
Data Structures | |
struct | RETROCON |
Typedefs | |
typedef MERROR_RETVAL(* | retrocon_cb) (struct RETROCON *con, const char *line, size_t line_sz, void *data) |
Functions | |
MERROR_RETVAL | retrocon_init (struct RETROCON *con, const char *font_name, size_t x, size_t y, size_t w, size_t h) |
MERROR_RETVAL | retrocon_add_command (struct RETROCON *con, const char *cmd, retrocon_cb cb, void *cb_data) |
MERROR_RETVAL | retrocon_print_line (struct RETROCON *con, const char *line) |
MERROR_RETVAL | retrocon_exec_line (struct RETROCON *con, char *line, size_t line_sz) |
int | retrocon_debounce (struct RETROCON *con, int c) |
MERROR_RETVAL | retrocon_input (struct RETROCON *con, RETROFLAT_IN_KEY *p_c, struct RETROFLAT_INPUT *input_evt, retrogui_idc_t *p_idc_out, struct MDATA_VECTOR *win_stack) |
Process input from retroflat_poll_input() and apply it to the console, if open. | |
MERROR_RETVAL | retrocon_display (struct RETROCON *con, retroflat_blit_t *gui_bmp) |
void | retrocon_shutdown (struct RETROCON *con) |
MERROR_RETVAL retrocon_input | ( | struct RETROCON * | con, |
RETROFLAT_IN_KEY * | p_c, | ||
struct RETROFLAT_INPUT * | input_evt, | ||
retrogui_idc_t * | p_idc_out, | ||
struct MDATA_VECTOR * | win_stack ) |
Process input from retroflat_poll_input() and apply it to the console, if open.
p_c | Pointer to the input value returned from retroflat_poll_input(). |
p_idc_out | Pointer to the retrogui_idc_t to set based on console input. The value this is initially set to will be used for the console window if win_stack is not NULL. |
win_stack | If this is not NULL, then the "open console" key will put the console in a RETROWIN on the given stack. |