symbian-qemu-0.9.1-12/qemu-symbian-svp/python-plugin.c
changeset 62 99ca724f9829
parent 36 a587897e3bb2
child 74 eb3d0111f868
--- a/symbian-qemu-0.9.1-12/qemu-symbian-svp/python-plugin.c	Thu Apr 22 14:57:42 2010 +0100
+++ b/symbian-qemu-0.9.1-12/qemu-symbian-svp/python-plugin.c	Thu Apr 22 14:59:02 2010 +0100
@@ -1,3 +1,10 @@
+/*
+*
+* Contributors:
+* NTT DOCOMO, INC. -- Syborg QEMU crashes when using skin + touchscreen device
+*
+*/
+
 #include "Python.h"
 #include "structmember.h"
 #include "hw/hw.h"
@@ -1862,11 +1869,12 @@
 static PyObject *qemu_py_register_mouse(PyObject *self, PyObject *args,
                                         PyObject *kwds)
 {
-    static char *kwlist[] = {"handler", "absolute", NULL};
+    static char *kwlist[] = {"handler", "absolute", "devid", NULL};
     PyObject *fn;
     int absolute;
+	char *devid;
 
-    if (!PyArg_ParseTupleAndKeywords(args, kwds, "Oi", kwlist, &fn, &absolute))
+    if (!PyArg_ParseTupleAndKeywords(args, kwds, "Ois", kwlist, &fn, &absolute, &devid))
         return NULL; 
 
     if (!PyCallable_Check(fn)) {
@@ -1875,7 +1883,7 @@
     }
 
     Py_INCREF(fn);
-    gui_register_mouse_event_handler(qemu_py_mouse_event, fn, absolute, "dev");
+    gui_register_mouse_event_handler(qemu_py_mouse_event, fn, absolute, devid);
 
     Py_RETURN_NONE;
 }