Panda3D
 All Classes Functions Variables Enumerations
config_tform.cxx
00001 // Filename: config_tform.cxx
00002 // Created by:  drose (23Feb00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_tform.h"
00016 
00017 #include "driveInterface.h"
00018 #include "buttonThrower.h"
00019 #include "mouseSubregion.h"
00020 #include "mouseWatcher.h"
00021 #include "mouseWatcherGroup.h"
00022 #include "mouseWatcherRegion.h"
00023 #include "trackball.h"
00024 #include "transform2sg.h"
00025 
00026 #include "dconfig.h"
00027 
00028 Configure(config_tform);
00029 NotifyCategoryDef(tform, "");
00030 
00031 ConfigVariableDouble drive_forward_speed
00032 ("drive-forward-speed", 20.0);
00033 ConfigVariableDouble drive_reverse_speed
00034 ("drive-reverse-speed", 10.0);
00035 ConfigVariableDouble drive_rotate_speed
00036 ("drive-rotate-speed", 80.0);
00037 ConfigVariableDouble drive_vertical_dead_zone
00038 ("drive-vertical-dead-zone", 0.1);
00039 ConfigVariableDouble drive_vertical_center
00040 ("drive-vertical-center", 0.0);
00041 ConfigVariableDouble drive_horizontal_dead_zone
00042 ("drive-horizontal-dead-zone", 0.1);
00043 ConfigVariableDouble drive_horizontal_center
00044 ("drive-horizontal-center", 0.0);
00045 ConfigVariableDouble drive_vertical_ramp_up_time
00046 ("drive-vertical-ramp-up-time", 0.0);
00047 ConfigVariableDouble drive_vertical_ramp_down_time
00048 ("drive-vertical-ramp-down-time", 0.0);
00049 ConfigVariableDouble drive_horizontal_ramp_up_time
00050 ("drive-horizontal-ramp-up-time", 0.0);
00051 ConfigVariableDouble drive_horizontal_ramp_down_time
00052 ("drive-horizontal-ramp-down-time", 0.0);
00053 
00054 ConfigVariableDouble inactivity_timeout
00055 ("inactivity-timeout", 0.0);
00056 
00057 ConfigVariableBool trackball_use_alt_keys
00058 ("trackball-use-alt-keys", true,
00059  PRC_DESC("Set this true to use the command and option/control keys in "
00060           "conjunction with the first mouse button to simulate the behavior of "
00061           "the second and third mouse buttons in trackball mode.  Particularly "
00062           "useful for Macs, or laptops with limited mouse buttons."));
00063 
00064 ConfigureFn(config_tform) {
00065   DriveInterface::init_type();
00066   ButtonThrower::init_type();
00067   MouseInterfaceNode::init_type();
00068   MouseSubregion::init_type();
00069   MouseWatcher::init_type();
00070   MouseWatcherGroup::init_type();
00071   MouseWatcherRegion::init_type();
00072   Trackball::init_type();
00073   Transform2SG::init_type();
00074 }
 All Classes Functions Variables Enumerations