#include <lib/python/python.h>
#include <lib/python/connections.h>
+#include <lib/driver/rc.h>
+
#ifdef OBJECT_DEBUG
int object_total_remaining;
printf("C++ says: it's a %d!!!\n", i);
}
+PSignal1<void,int> keyPressed;
+
+PSignal1<void,int> &keyPressedSignal()
+{
+ return keyPressed;
+}
+
+void keyEvent(const eRCKey &key)
+{
+ if (!key.flags)
+ keyPressed(key.code);
+}
+
int main(int argc, char **argv)
{
#ifdef OBJECT_DEBUG
/* redrawing is done in an idle-timer, so we have to set the context */
dsk.setRedrawTask(main);
+ eRCInput::getInstance()->keyEvent.connect(slot(keyEvent));
+
ePython python;
printf("executing main\n");