#include <lib/actions/action.h>
#include <lib/driver/rc.h>
+#include <lib/base/ioprio.h>
#include <lib/base/ebase.h>
#include <lib/base/eerror.h>
#include <lib/base/init.h>
static eWidgetDesktop *wdsk, *lcddsk;
-PSignal1<void,int> keyPressed;
-
-PSignal1<void,int> &keyPressedSignal()
-{
- return keyPressed;
-}
-
static int prev_ascii_code;
int getPrevAsciiCode()
if (key.flags & eRCKey::flagAscii)
{
prev_ascii_code = key.code;
- ptr->keyPressed(0, 510 /* faked KEY_ASCII */, 0);
+ ptr->keyPressed(key.producer->getIdentifier(), 510 /* faked KEY_ASCII */, 0);
}
else
- ptr->keyPressed(0, key.code, key.flags);
- if (!key.flags)
- keyPressed(key.code);
+ ptr->keyPressed(key.producer->getIdentifier(), key.code, key.flags);
}
/************************************************/
eWidgetDesktop dsk(eSize(720, 576));
eWidgetDesktop dsk_lcd(eSize(132, 64));
+ dsk.setStyleID(0);
+ dsk_lcd.setStyleID(1);
+
/* if (double_buffer)
{
eDebug(" - double buffering found, enable buffered graphics mode.");
printf("executing main\n");
bsodCatchSignals();
-
+
+ setIoPrio(IOPRIO_CLASS_BE, 3);
+
python.execute("mytest", "__main__");
if (exit_code == 5) /* python crash */
exit_code = exitCode;
eApp->quit(0);
}
-
-void addFont(const char *filename, const char *alias, int scale_factor, int is_replacement)
-{
- fontRenderClass::getInstance()->AddFont(filename, alias, scale_factor);
- if (is_replacement)
- eTextPara::setReplacementFont(alias);
-}