X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_main.c;h=1c308dfc55d6259d43ddda831325641f354afc93;hb=f8f7b0b9b19223a681425ebb194c12d7b5756f40;hp=938f264cbf9e51ecc5ef697bfc103cd64934336f;hpb=727f754eabe4bb4751e2d286c8ab71f9ea6d8908;p=freeglut diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 938f264..1c308df 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -27,7 +27,7 @@ #include #include "freeglut_internal.h" -#if HAVE_ERRNO +#if HAVE_ERRNO_H # include #endif #include @@ -473,7 +473,7 @@ static void fghSleepForEvents( void ) wait.tv_usec = (msec % 1000) * 1000; err = select( socket+1, &fdset, NULL, NULL, &wait ); -#if HAVE_ERRNO +#if HAVE_ERRNO_H if( ( -1 == err ) && ( errno != EINTR ) ) fgWarning ( "freeglut select() error: %d", errno ); #endif @@ -980,6 +980,10 @@ void FGAPIENTRY glutMainLoopEvent( void ) switch( event.type ) { case ClientMessage: + if(fgIsSpaceballXEvent(&event)) { + fgSpaceballHandleXEvent(&event); + break; + } /* Destroy the window when the WM_DELETE_WINDOW message arrives */ if( (Atom) event.xclient.data.l[ 0 ] == fgDisplay.DeleteWindow ) {