From 01a403802ecc6465a0dec05b52b3d179732bb7c7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 13 Jan 2006 18:23:28 +0000 Subject: Textscreen getchar() function; remove SDL code from I_Endoom. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 289 --- textscreen/txt_main.h | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'textscreen/txt_main.h') diff --git a/textscreen/txt_main.h b/textscreen/txt_main.h index ec41d94c..25375d2d 100644 --- a/textscreen/txt_main.h +++ b/textscreen/txt_main.h @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: txt_main.h 146 2005-10-02 03:16:03Z fraggle $ +// $Id: txt_main.h 289 2006-01-13 18:23:28Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.2 2006/01/13 18:23:28 fraggle +// Textscreen getchar() function; remove SDL code from I_Endoom. +// // Revision 1.1 2005/10/02 03:16:03 fraggle // Text mode emulation code // @@ -35,6 +38,39 @@ #ifndef TXT_MAIN_H #define TXT_MAIN_H +// Special keypress values that correspond to mouse button clicks +// +#define TXT_MOUSE_LEFT 1 +#define TXT_MOUSE_RIGHT 2 +#define TXT_MOUSE_MIDDLE 3 + +// Screen size + +#define TXT_SCREEN_W 80 +#define TXT_SCREEN_H 25 + +#define TXT_COLOR_BLINKING (1 << 3) + +typedef enum +{ + TXT_COLOR_BLACK, + TXT_COLOR_BLUE, + TXT_COLOR_GREEN, + TXT_COLOR_CYAN, + TXT_COLOR_RED, + TXT_COLOR_MAGENTA, + TXT_COLOR_BROWN, + TXT_COLOR_GREY, + TXT_COLOR_DARK_GREY, + TXT_COLOR_BRIGHT_BLUE, + TXT_COLOR_BRIGHT_GREEN, + TXT_COLOR_BRIGHT_CYAN, + TXT_COLOR_BRIGHT_RED, + TXT_COLOR_BRIGHT_MAGENTA, + TXT_COLOR_YELLOW, + TXT_COLOR_BRIGHT_WHITE, +} txt_color_t; + // Initialise the screen // Returns 1 if successful, 0 if failed. @@ -56,5 +92,9 @@ void TXT_UpdateScreenArea(int x, int y, int w, int h); void TXT_UpdateScreen(void); +// Read a character from the keyboard + +int TXT_GetChar(void); + #endif /* #ifndef TXT_MAIN_H */ -- cgit v1.2.3