]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/joyclient.cxx
Update 'magic' for more consistant cross platform padding.
[flightgear.git] / src / Network / joyclient.cxx
index 419c8a41741490f604823261c794884862b66866..2f5e802aa21a171b117ae57aff791a5272724c09 100644 (file)
@@ -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
@@ -82,8 +82,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 +100,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 );
            }
        }
     }