#ifndef __CONSOLE__H_ #define __CONSOLE__H_ #include "mx.h" struct mxWin *console = 0; int dim_con = 0; int console_key(struct mxEvent *e) { } int con_event(struct mxEvent *e) { switch(e->type) { case SDL_RENDER: { SDL_FillRect(e->cur_surface, 0, 0); } break; case SDL_MENU_CLICKED: { keyboard.event = console_key; } break; } return 0; } void init_console() { static int con_init = 0; if(con_init == 0) { SDL_Rect rc = { 0,0,480,272 }; console = init_windows(0,&rc,0x0,0x0,0x0,"",con_event); console->active = 1; console->full = 1; console->show = 1; dim_con = add_new_dim("console", console); con_init = 1; } } void draw_console() { //SDL_PrintText(front, font, 10,10,SDL_MapRGB(front->format,255,255,255),keyboard.keybuffer); } #endif