X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_spaceball.c;h=953474635be950b2d38ecdfc8a01f86db6d672ab;hb=764267bd18adc5df279862397a64f02c7d7f43d0;hp=52d9841b8853cd178e93863f7d72cd158e4d0966;hpb=cae6701c343e3a42bc9504f14e6d83e4ca9d8119;p=freeglut diff --git a/src/fg_spaceball.c b/src/fg_spaceball.c index 52d9841..9534746 100644 --- a/src/fg_spaceball.c +++ b/src/fg_spaceball.c @@ -7,9 +7,12 @@ * magellan X-based protocol. */ + #include #include "fg_internal.h" +#if( !_WIN32 || _WIN32_WINNT >= 0x0501) + /* -- PRIVATE FUNCTIONS --------------------------------------------------- */ extern void fgPlatformInitializeSpaceball(void); @@ -28,13 +31,12 @@ void fgInitialiseSpaceball(void) } fgPlatformInitializeSpaceball(); - - //sball_initialized = 1; } void fgSpaceballClose(void) { - fgPlatformSpaceballClose();} + fgPlatformSpaceballClose(); +} int fgHasSpaceball(void) { @@ -74,3 +76,28 @@ void fgSpaceballSetWindow(SFG_Window *window) fgPlatformSpaceballSetWindow(window); } +#else + +void fgInitialiseSpaceball(void) +{ +} + +void fgSpaceballClose(void) +{ +} + +int fgHasSpaceball(void) +{ + return 0; +} + +int fgSpaceballNumButtons(void) +{ + return 0; +} + +void fgSpaceballSetWindow(SFG_Window *window) +{ +} + +#endif