aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-07 09:17:51 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-07 09:17:51 +0000
commit45442377fc854e7224605085375e75f958aa5722 (patch)
treeffeb6c553c7841453d808a57a906bfe63c5ac2fa
parent164779f4a960754a7d18d5947c43df1e26963a89 (diff)
downloadenigma2-45442377fc854e7224605085375e75f958aa5722.tar.gz
enigma2-45442377fc854e7224605085375e75f958aa5722.zip
make some functions accessible from python
-rw-r--r--lib/driver/rc.cpp2
-rw-r--r--lib/driver/rc.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/driver/rc.cpp b/lib/driver/rc.cpp
index 1a2cc1d8..43c1f2b2 100644
--- a/lib/driver/rc.cpp
+++ b/lib/driver/rc.cpp
@@ -171,7 +171,7 @@ eRCInput::eRCInput()
instance=this;
handle = -1;
locked = 0;
- keyboardMode = kmAll;
+ keyboardMode = kmNone;
}
eRCInput::~eRCInput()
diff --git a/lib/driver/rc.h b/lib/driver/rc.h
index e9542ca8..6653189a 100644
--- a/lib/driver/rc.h
+++ b/lib/driver/rc.h
@@ -127,7 +127,8 @@ public:
enum
{
flagBreak=1,
- flagRepeat=2
+ flagRepeat=2,
+ flagAscii=4
};
bool operator<(const eRCKey &r) const
@@ -215,10 +216,6 @@ public:
lock the console and pass this as the console fd for making the
tc* stuff working.
*/
-
- enum { kmNone, kmAscii, kmAll };
- void setKeyboardMode(int mode) { keyboardMode = mode; }
- int getKeyboardMode() { return keyboardMode; }
void keyPressed(const eRCKey &key)
{
@@ -232,6 +229,9 @@ public:
eRCConfig config;
#endif
+ enum { kmNone, kmAscii, kmAll };
+ void setKeyboardMode(int mode) { keyboardMode = mode; }
+ int getKeyboardMode() { return keyboardMode; }
static eRCInput *getInstance() { return instance; }
int lock();
void unlock();