diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-06-19 23:32:12 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-06-19 23:32:12 +0000 |
| commit | c2b4aa62c5e2d5e562010350cc3ca49002d9614f (patch) | |
| tree | e90212422f171714cb44230dd497b214bbb0a1bb /lib/actions/action.h | |
| parent | 7e053d70aeab7a3510b67230c1655e5b6f6a8825 (diff) | |
| download | enigma2-c2b4aa62c5e2d5e562010350cc3ca49002d9614f.tar.gz enigma2-c2b4aa62c5e2d5e562010350cc3ca49002d9614f.zip | |
add 'domain' in actionmap for loading (and unloading) multiple keymaps at once
Diffstat (limited to 'lib/actions/action.h')
| -rw-r--r-- | lib/actions/action.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/actions/action.h b/lib/actions/action.h index 834dc209..f0a6ee49 100644 --- a/lib/actions/action.h +++ b/lib/actions/action.h @@ -31,8 +31,9 @@ public: void bindAction(const std::string &context, int priority, SWIG_PYOBJECT(ePyObject) function); void unbindAction(const std::string &context, SWIG_PYOBJECT(ePyObject) function); - - void bindKey(const std::string &device, int key, int flags, const std::string &context, const std::string &action); + + void bindKey(const std::string &domain, const std::string &device, int key, int flags, const std::string &context, const std::string &action); + void unbindKeyDomain(const std::string &domain); void keyPressed(const std::string &device, int key, int flags); @@ -44,6 +45,7 @@ private: { // eActionContext *m_context; std::string m_context; // FIXME + std::string m_domain; ePyObject m_fnc; @@ -57,6 +59,7 @@ private: struct eNativeKeyBinding { std::string m_device; + std::string m_domain; int m_key; int m_flags; @@ -70,6 +73,7 @@ private: struct ePythonKeyBinding { std::string m_device; + std::string m_domain; int m_key; int m_flags; |
