Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/tform/config_tform.cxx

Go to the documentation of this file.
00001 // Filename: config_tform.cxx
00002 // Created by:  drose (23Feb00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "config_tform.h"
00020 
00021 #include "driveInterface.h"
00022 #include "buttonThrower.h"
00023 #include "mouseWatcher.h"
00024 #include "mouseWatcherGroup.h"
00025 #include "mouseWatcherRegion.h"
00026 #include "trackball.h"
00027 #include "transform2sg.h"
00028 
00029 #include <dconfig.h>
00030 
00031 Configure(config_tform);
00032 NotifyCategoryDef(tform, "");
00033 
00034 const double drive_forward_speed = config_tform.GetDouble("drive-forward-speed", 20.0);
00035 const double drive_reverse_speed = config_tform.GetDouble("drive-reverse-speed", 10.0);
00036 const double drive_rotate_speed = config_tform.GetDouble("drive-rotate-speed", 80.0);
00037 const double drive_vertical_dead_zone = config_tform.GetDouble("drive-vertical-dead-zone", 0.1);
00038 const double drive_vertical_center = config_tform.GetDouble("drive-vertical-center", 0.0);
00039 const double drive_horizontal_dead_zone = config_tform.GetDouble("drive-horizontal-dead-zone", 0.1);
00040 const double drive_horizontal_center = config_tform.GetDouble("drive-horizontal-center", 0.0);
00041 const double drive_vertical_ramp_up_time = config_tform.GetDouble("drive-vertical-ramp-up-time", 0.0);
00042 const double drive_vertical_ramp_down_time = config_tform.GetDouble("drive-vertical-ramp-down-time", 0.0);
00043 const double drive_horizontal_ramp_up_time = config_tform.GetDouble("drive-horizontal-ramp-up-time", 0.0);
00044 const double drive_horizontal_ramp_down_time = config_tform.GetDouble("drive-horizontal-ramp-down-time", 0.0);
00045 
00046 ConfigureFn(config_tform) {
00047   DriveInterface::init_type();
00048   ButtonThrower::init_type();
00049   MouseWatcher::init_type();
00050   MouseWatcherGroup::init_type();
00051   MouseWatcherRegion::init_type();
00052   Trackball::init_type();
00053   Transform2SG::init_type();
00054 }

Generated on Fri May 2 00:44:25 2003 for Panda by doxygen1.3