summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-12-15 15:58:59 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-12-15 15:58:59 +0100
commit831d7b85242f2c6b91f68b448c3601e8f99e4698 (patch)
treea59e8c6063f3837575f08461d23808aa64274a05 /remote.c
parentc7849b14a7502f626f9cf806e998a711b28fb21b (diff)
downloadvdr-831d7b85242f2c6b91f68b448c3601e8f99e4698.tar.gz
vdr-831d7b85242f2c6b91f68b448c3601e8f99e4698.tar.bz2
Enhacements to cKbdRemote
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/remote.c b/remote.c
index da28f389..29149e9d 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 1.35 2002/12/15 10:09:27 kls Exp $
+ * $Id: remote.c 1.36 2002/12/15 15:58:59 kls Exp $
*/
#include "remote.h"
@@ -180,6 +180,7 @@ static tKbdMap KbdMap[] = {
{ kfNone, 0x0000000000000000ULL }
};
+bool cKbdRemote::kbdAvailable = false;
bool cKbdRemote::rawMode = false;
cKbdRemote::cKbdRemote(void)
@@ -195,11 +196,13 @@ cKbdRemote::cKbdRemote(void)
tm.c_cc[VTIME] = 0;
tcsetattr(STDIN_FILENO, TCSANOW, &tm);
}
+ kbdAvailable = true;
Start();
}
cKbdRemote::~cKbdRemote()
{
+ kbdAvailable = false;
active = false;
Cancel(3);
tcsetattr(STDIN_FILENO, TCSANOW, &savedTm);