From 1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 25 Feb 2005 01:46:44 +0000 Subject: - work on actions - changed time when screens are acutally constructed - added service name (not working atm) and event info (now&next) --- main/enigma.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'main/enigma.cpp') diff --git a/main/enigma.cpp b/main/enigma.cpp index b055619e..6bf0bb97 100644 --- a/main/enigma.cpp +++ b/main/enigma.cpp @@ -25,6 +25,8 @@ #include +#include + #ifdef OBJECT_DEBUG int object_total_remaining; @@ -71,8 +73,11 @@ PSignal1 &keyPressedSignal() void keyEvent(const eRCKey &key) { - if (!key.flags) - keyPressed(key.code); + ePtr ptr; + eActionMap::getInstance(ptr); + ptr->keyPressed(0, key.code, key.flags); +// if (!key.flags) +// keyPressed(key.code); } /************************************************/ @@ -163,8 +168,10 @@ int main(int argc, char **argv) eRCInput::getInstance()->keyEvent.connect(slot(keyEvent)); printf("executing main\n"); + python.execute("mytest", "__main__"); + // eApp->exec(); return 0; -- cgit v1.2.3