Hi all,
i'm developing a whiteboard application for using a Wiimote as mouse 
controller.
I have almost do everything but i'm stuck on the problem about how to move 
the mouse cursor programmatically, send mouse input to all windows on 
desktop and so on.
I know that "normal" c++ software can use this code:

void fake_move(int x, int y)
{
Display* display = XOpenDisplay(0);
XTestFakeMotionEvent(display, -1, x, y, 0);
XCloseDisplay(display);
DEBUG_MSG(4, "Mouse moved: %dx%d\n", x, y);
}

void fake_button(int button, bool pressed)
{
Display* display = XOpenDisplay(0);
XTestFakeButtonEvent(display, button, pressed, 0);
XCloseDisplay(display);
DEBUG_MSG(4, "Mouse button #%d's state changed to %d\n", button,
pressed); }

but i don't know how if this "X" call are supported by the library or how to 
import and use  this functions.
Somebody can help me ??
Thanks in advance
Stefano
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to