MPX Newbie, second mouse SDLgetMouseState?

Rodolfo Alcazar Portillo nospaze at
Fri Jun 4 06:51:52 PDT 2010

Hi. Im developing a two-cars two-mice-controlled game with python
+pygame. But pygame does not still use MultiPointerX - mpx, which runs
fine in my machine via xinput list and 
$ xinput create-master Auxiliary; xinput reattach 12 "Auxiliary pointer"

I can see in the Pygame library this code, which returns BOTH mice

static PyObject*
mouse_get_pos (PyObject* self) 
{   int x, y;

    SDL_GetMouseState (&x, &y);
    return Py_BuildValue ("(ii)", x, y);

Im a newbie with C and SDL. How should I modify this code in order to
get ONLY THE SECOND MOUSE position? Any ideas are welcome.

Rodolfo Alcazar Portillo - nospaze at / #367962
Blessed are the PHBs-who-do-not-understand-hardware, for they can be
coerced into signing for upgrades to make life a bit more tolerable

More information about the xorg mailing list