Hello.

Well, im trying to use a wiiremote in my application. im using the wiiuse library for this.

The problem is this:

Code :
int main(int argc, char** argv) 
{
	glutInit(&argc,argv);
	glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);
	glutInitWindowSize(800,600);
 
	glutInitWindowPosition(100,150);
	glutCreateWindow("FIRST ONE");
 
	glutDisplayFunc(display);
	glutMainLoop();
 
        while (1) {
             /* The wiimote events are handled here */
        }
}

Now, the problem is, if glutMainLoop() is befor the event handler infinite loop of the wii, i cant get till the infinite loop.
im not sure how i can handle both these events.

Any suggestions?

Thanks.