#include #include "input.h" static int cursor_type=_NORMALCURSOR; int getkey() { int k; while(!kbhit()); if (!(k=getch())) k=-getch(); return k; } void show_cursor() { _setcursortype(cursor_type); } void hide_cursor() { _setcursortype(_NOCURSOR); } void set_solid_cursor() { cursor_type=_SOLIDCURSOR; } void set_normal_cursor() { cursor_type=_NORMALCURSOR; } void set_cursor_type(int type) { cursor_type=type; } void move_cursor(int x,int y) { gotoxy(x,y); }