summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2002-12-15 18:00:00 +0100
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2002-12-15 18:00:00 +0100
commit48fd2b04e9010bb67e19f33e8c7506a976b70e90 (patch)
tree193831c898b7adfcab65262a1442c27f249f42c1 /remote.h
parent2b15337b71d71c5e486efe738a507b550bb28843 (diff)
downloadvdr-patch-lnbsharing-48fd2b04e9010bb67e19f33e8c7506a976b70e90.tar.gz
vdr-patch-lnbsharing-48fd2b04e9010bb67e19f33e8c7506a976b70e90.tar.bz2
Version 1.1.20vdr-1.1.20
- Now checking if there is a connection to the keyboard (thanks to Jaakko Hyvätti) and only creating the KBD remote control if VDR is running in the foreground. - Fixed taking an active SVDRP connection into account when doing shutdown (thanks to Gregoire Favre for reporting this one). - Changed setting of CXX and CXXFLAGS variables in Makefile, so that an externally defined value will be taken if present (suggested by Robert Schiele). Plugin authors should please change the lines CXX = g++ CXXFLAGS = -O2 -Wall -Woverloaded-virtual in their Makefile to CXX ?= g++ CXXFLAGS ?= -O2 -Wall -Woverloaded-virtual - Fixed recording overlapping timers on the same channel in case DO_REC_AND_PLAY_ON_PRIMARY_DEVICE and/or DO_MULTIPLE_RECORDINGS is not defined (thanks to Jaakko Hyvätti). - No longer stopping/restarting the DMX when switching audio channels (thanks to Sven Goethel). - Fixed high CPU load in 'Transfer Mode' (thanks to Oliver Endriss). - If a PC keyboard is used as remote control, the string entry fields in the menus now accept character input directly (however, this works only for keys that are not otherwise defined as remote control keys). Also, plugins can switch the cKbdRemote class into "raw mode", where all keyboard input will be made available through the new 'kKbd' key code and none of it will be processed as normal remote control functions (thanks to Jan Rieger for suggestions and testing). - Fixed deleting characters in string entry fields in 'insert' mode. - Now using "Doxygen" to generate source documentation (thanks to Walter Stroebel for providing an initial 'Doxyfile' configuration and adjusting some comments). See INSTALL for information how to do this. Some function descriptions have already been adapted to Doxygen, more will follow.
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/remote.h b/remote.h
index 1c087d0..7908b1d 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.24 2002/12/15 15:49:06 kls Exp $
*/
#ifndef __REMOTE_H
@@ -51,14 +51,46 @@ 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 kbdAvailable;
+ static bool rawMode;
struct termios savedTm;
virtual void Action(void);
+ int MapCodeToFunc(uint64 Code);
public:
cKbdRemote(void);
virtual ~cKbdRemote();
+ static bool KbdAvailable(void) { return kbdAvailable; }
+ static uint64 MapFuncToCode(int Func);
+ static void SetRawMode(bool RawMode);
};
#endif //__REMOTE_H