diff --git a/acconfig.h b/acconfig.h index 540703f06..3e3111502 100644 --- a/acconfig.h +++ b/acconfig.h @@ -67,8 +67,8 @@ /* Define to avoid Christian's new weather code */ #undef FG_NEW_ENVIRONMENT -/* Define to use new experimental mouse input code */ -#undef FG_NEW_MOUSE +/* Define to use old mouse support */ +#undef FG_OLD_MOUSE /* Define if we are building FGFS (should always be defined) */ #undef FGFS diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 749ca5714..18983b4ec 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -197,7 +197,7 @@ FGInput::init () glutKeyboardUpFunc(GLUTkeyup); glutSpecialFunc(GLUTspecialkey); glutSpecialUpFunc(GLUTspecialkeyup); -#ifdef FG_NEW_MOUSE +#ifndef FG_OLD_MOUSE glutMouseFunc (GLUTmouse); glutMotionFunc (GLUTmotion); glutPassiveMotionFunc (GLUTmotion); diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 7c099785a..2ba337327 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1338,7 +1338,7 @@ int fgGlutInitEvents( void ) { // keyboard and mouse callbacks are set in FGInput::init -#ifndef FG_NEW_MOUSE +#ifdef FG_OLD_MOUSE // call guiMouseFunc() whenever our little rodent is used glutMouseFunc ( guiMouseFunc ); glutMotionFunc (guiMotionFunc );