summaryrefslogtreecommitdiff
path: root/textscreen/txt_main.h
diff options
context:
space:
mode:
authorSimon Howard2006-08-31 18:08:43 +0000
committerSimon Howard2006-08-31 18:08:43 +0000
commite5d6ce3318a59a18f25a632fa5ba0fd6801d7a3f (patch)
tree7e9b1f2c9610f23fde9144facfbe5e3e623b46bb /textscreen/txt_main.h
parent9c1d6d6f34af6699d272020757ca36a4daebe884 (diff)
downloadchocolate-doom-e5d6ce3318a59a18f25a632fa5ba0fd6801d7a3f.tar.gz
chocolate-doom-e5d6ce3318a59a18f25a632fa5ba0fd6801d7a3f.tar.bz2
chocolate-doom-e5d6ce3318a59a18f25a632fa5ba0fd6801d7a3f.zip
More efficient TXT_Sleep function that puts the textscreen code to sleep
until an event is received or the screen needs to blink. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 570
Diffstat (limited to 'textscreen/txt_main.h')
-rw-r--r--textscreen/txt_main.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/textscreen/txt_main.h b/textscreen/txt_main.h
index 43c5475b..0f63a445 100644
--- a/textscreen/txt_main.h
+++ b/textscreen/txt_main.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: txt_main.h 547 2006-06-02 19:29:24Z fraggle $
+// $Id: txt_main.h 570 2006-08-31 18:08:43Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -105,5 +105,10 @@ void TXT_GetKeyDescription(int key, char *buf);
void TXT_GetMouseState(int *x, int *y);
+// Sleep until an event is received or the screen needs updating
+// Optional timeout in ms (timeout == 0 : sleep forever)
+
+void TXT_Sleep(int timeout);
+
#endif /* #ifndef TXT_MAIN_H */