Wednesday, April 29, 2009

Senior Design Done

It's the end of the semester, and that means the end of Senior Design. If you are interested in a Linux 3D immersive game using Wii motes, here's the link.

XWarpPointer

Just came across a way to move the mouse pointer to an absolute position in X. Follow the code below:
int main()
{
Display* xdisplay1 = XOpenDisplay(NULL);
if(!xdisplay1) {
printf("display = null\n");
}
Window root = DefaultRootWindow(xdisplay1);
XWarpPointer(xdisplay1, 0, root, 0, 0, 0, 0, 10, 10);
XCloseDisplay(xdisplay1);

}