diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-05-16 15:17:53 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-05-16 15:17:53 +0000 |
| commit | 22061f63b0ae2254d569b3c9f2d28f1add39ab1c (patch) | |
| tree | 2019710e498e08a313104134beccf9839dbefe2c /lib/actions/action.cpp | |
| parent | 6e8738f7f86c2bd4263c99a0095dc1a071870dca (diff) | |
| download | enigma2-22061f63b0ae2254d569b3c9f2d28f1add39ab1c.tar.gz enigma2-22061f63b0ae2254d569b3c9f2d28f1add39ab1c.zip | |
- autodetect available input devices
- fix flag support
- fix keymap: listbox moveUp/moveDown
Diffstat (limited to 'lib/actions/action.cpp')
| -rw-r--r-- | lib/actions/action.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/actions/action.cpp b/lib/actions/action.cpp index c538bd48..26eba7a4 100644 --- a/lib/actions/action.cpp +++ b/lib/actions/action.cpp @@ -143,7 +143,7 @@ void eActionMap::keyPressed(int device, int key, int flags) if ( // (k->second.m_device == m_device) && (k->second.m_key == key) && - ((k->second.m_flags & flags)==flags)) + (k->second.m_flags & (1<<flags))) { if (i->second.m_widget->event(eWidget::evtAction, 0, (void*)k->second.m_action)) return; @@ -160,7 +160,7 @@ void eActionMap::keyPressed(int device, int key, int flags) if ( // (k->second.m_device == m_device) && (k->second.m_key == key) && - ((k->second.m_flags & flags)==flags)) + (k->second.m_flags & (1<<flags))) { PyObject *pArgs = PyTuple_New(2); PyTuple_SetItem(pArgs, 0, PyString_FromString(k->first.c_str())); |
