Replace --with-new-mouse with --with-old-mouse, defaulting to 'no'.
This commit is contained in:
parent
b3a3c0fbac
commit
3bb69f35d1
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue