X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2Fjoyclient.cxx;h=b163cb00ee69b175341d1d9c27c75438e04315fe;hb=e16f772e54216b0088ca9cb3f3b0fb062be8bfdb;hp=419c8a41741490f604823261c794884862b66866;hpb=182fd42b4017fa54d680508c092ea1b216398a00;p=flightgear.git diff --git a/src/Network/joyclient.cxx b/src/Network/joyclient.cxx index 419c8a417..b163cb00e 100644 --- a/src/Network/joyclient.cxx +++ b/src/Network/joyclient.cxx @@ -2,7 +2,7 @@ // // Written by Curtis Olson, started April 2000. // -// Copyright (C) 2000 Curtis L. Olson - curt@flightgear.org +// Copyright (C) 2000 Curtis L. Olson - http://www.flightgear.org/~curt // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -16,15 +16,19 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include #include -#include +#include +#include
#include "joyclient.hxx" @@ -82,8 +86,8 @@ bool FGJoyClient::process() { if ( fabs(elevator) < 0.05 ) { elevator = 0.0; } - controls.set_aileron( aileron ); - controls.set_elevator( -elevator ); + globals->get_controls()->set_aileron( aileron ); + globals->get_controls()->set_elevator( -elevator ); } } else { while ( io->read( (char *)(& buf), length ) == length ) { @@ -100,8 +104,8 @@ bool FGJoyClient::process() { if ( fabs(elevator) < 0.05 ) { elevator = 0.0; } - controls.set_aileron( aileron ); - controls.set_elevator( -elevator ); + globals->get_controls()->set_aileron( aileron ); + globals->get_controls()->set_elevator( -elevator ); } } }