make some functions accessible from python
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 7 Jun 2006 09:17:51 +0000 (09:17 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 7 Jun 2006 09:17:51 +0000 (09:17 +0000)
lib/driver/rc.cpp
lib/driver/rc.h

index 1a2cc1d8f3754f489d529cae1800eec307281093..43c1f2b2e6aaf5d66a50193131f647835b218875 100644 (file)
@@ -171,7 +171,7 @@ eRCInput::eRCInput()
        instance=this;
        handle = -1;
        locked = 0;
        instance=this;
        handle = -1;
        locked = 0;
-       keyboardMode = kmAll;
+       keyboardMode = kmNone;
 }
 
 eRCInput::~eRCInput()
 }
 
 eRCInput::~eRCInput()
index e9542ca8facdea18cb5fa2ed580894eafd5d207e..6653189af475dc9541a736c1f1b1901562cc3cae 100644 (file)
@@ -127,7 +127,8 @@ public:
        enum
        {
                flagBreak=1,
        enum
        {
                flagBreak=1,
-               flagRepeat=2
+               flagRepeat=2,
+               flagAscii=4
        };
        
        bool operator<(const eRCKey &r) const
        };
        
        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.
        */
           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)
        {
 
        void keyPressed(const eRCKey &key)
        {
@@ -232,6 +229,9 @@ public:
 
        eRCConfig config;
 #endif
 
        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();
        static eRCInput *getInstance() { return instance; }
        int lock();
        void unlock();