X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_init.c;h=590c2bbc77cfc3364a403a73fa4574572ea3e24b;hb=25c02c0a02ba2231f22d69fb2a54b6ede7f17504;hp=c9e85c5e5d61135cf9ff895a0181ec8fee015c0f;hpb=acc07c33a660243fece1e72b658c4228a70bea33;p=freeglut diff --git a/src/freeglut_init.c b/src/freeglut_init.c index c9e85c5..590c2bb 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -205,6 +205,7 @@ void fgInitialize( const char* displayName ) #endif fgJoystickInit( 0 ); + fgJoystickInit( 1 ); fgState.Initialised = GL_TRUE; } @@ -612,15 +613,9 @@ void FGAPIENTRY glutInit( int* pargc, char** argv ) } /* - * Have the display created now. As I am too lazy to implement - * the program arguments parsing, we will have the DISPLAY - * environment variable used for opening the X display: - * - * XXX The above comment is rather unclear. We have just - * XXX completed parsing of the program arguments for GLUT - * XXX parameters. We obviously canNOT parse the application- - * XXX specific parameters. Can someone re-write the above - * XXX more clearly? + * Have the display created now. If there wasn't a "-display" + * in the program arguments, we will use the DISPLAY environment + * variable for opening the X display (see code above): */ fgInitialize( displayName );