Whiteboard application

"Stefano Del Furia" <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
 
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

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.