summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-12-15 10:58:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-12-15 10:58:00 +0100
commitb90e708733789290c633e620f24bd6eb08dd0c2d (patch)
tree31c8fcab50cb1b54ff51c2220aa29adee5db5a34 /remote.h
parent0f01d921066d81d0c6a4ddaa521048566cc28c80 (diff)
downloadvdr-b90e708733789290c633e620f24bd6eb08dd0c2d.tar.gz
vdr-b90e708733789290c633e620f24bd6eb08dd0c2d.tar.bz2
Implemented raw keyboard input
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/remote.h b/remote.h
index 1c087d0f..0b8c7a30 100644
--- a/remote.h
+++ b/remote.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.h 1.22 2002/12/08 13:37:02 kls Exp $
+ * $Id: remote.h 1.23 2002/12/15 09:58:32 kls Exp $
*/
#ifndef __REMOTE_H
@@ -51,14 +51,44 @@ class cRemotes : public cList<cRemote> {};
extern cRemotes Remotes;
+enum eKbdFunc {
+ kfNone,
+ kfF1 = 0x100,
+ kfF2,
+ kfF3,
+ kfF4,
+ kfF5,
+ kfF6,
+ kfF7,
+ kfF8,
+ kfF9,
+ kfF10,
+ kfF11,
+ kfF12,
+ kfUp,
+ kfDown,
+ kfLeft,
+ kfRight,
+ kfHome,
+ kfEnd,
+ kfPgUp,
+ kfPgDown,
+ kfIns,
+ kfDel,
+ };
+
class cKbdRemote : public cRemote, private cThread {
private:
bool active;
+ static bool rawMode;
struct termios savedTm;
virtual void Action(void);
+ int MapCodeToFunc(uint64 Code);
public:
cKbdRemote(void);
virtual ~cKbdRemote();
+ uint64 MapFuncToCode(int Func);
+ static void SetRawMode(bool RawMode);
};
#endif //__REMOTE_H