Panda3D
 All Classes Functions Variables Enumerations
config_tform.cxx
1 // Filename: config_tform.cxx
2 // Created by: drose (23Feb00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "config_tform.h"
16 
17 #include "driveInterface.h"
18 #include "buttonThrower.h"
19 #include "mouseSubregion.h"
20 #include "mouseWatcher.h"
21 #include "mouseWatcherBase.h"
22 #include "mouseWatcherGroup.h"
23 #include "mouseWatcherRegion.h"
24 #include "trackball.h"
25 #include "transform2sg.h"
26 
27 #include "dconfig.h"
28 
29 Configure(config_tform);
30 NotifyCategoryDef(tform, "");
31 
32 ConfigVariableDouble drive_forward_speed
33 ("drive-forward-speed", 20.0);
34 ConfigVariableDouble drive_reverse_speed
35 ("drive-reverse-speed", 10.0);
36 ConfigVariableDouble drive_rotate_speed
37 ("drive-rotate-speed", 80.0);
38 ConfigVariableDouble drive_vertical_dead_zone
39 ("drive-vertical-dead-zone", 0.1);
40 ConfigVariableDouble drive_vertical_center
41 ("drive-vertical-center", 0.0);
42 ConfigVariableDouble drive_horizontal_dead_zone
43 ("drive-horizontal-dead-zone", 0.1);
44 ConfigVariableDouble drive_horizontal_center
45 ("drive-horizontal-center", 0.0);
46 ConfigVariableDouble drive_vertical_ramp_up_time
47 ("drive-vertical-ramp-up-time", 0.0);
48 ConfigVariableDouble drive_vertical_ramp_down_time
49 ("drive-vertical-ramp-down-time", 0.0);
50 ConfigVariableDouble drive_horizontal_ramp_up_time
51 ("drive-horizontal-ramp-up-time", 0.0);
52 ConfigVariableDouble drive_horizontal_ramp_down_time
53 ("drive-horizontal-ramp-down-time", 0.0);
54 
55 ConfigVariableDouble inactivity_timeout
56 ("inactivity-timeout", 0.0);
57 
58 ConfigVariableBool trackball_use_alt_keys
59 ("trackball-use-alt-keys", true,
60  PRC_DESC("Set this true to use the command and option/control keys in "
61  "conjunction with the first mouse button to simulate the behavior of "
62  "the second and third mouse buttons in trackball mode. Particularly "
63  "useful for Macs, or laptops with limited mouse buttons."));
64 
65 ConfigureFn(config_tform) {
66  DriveInterface::init_type();
67  ButtonThrower::init_type();
68  MouseInterfaceNode::init_type();
69  MouseSubregion::init_type();
70  MouseWatcher::init_type();
71  MouseWatcherBase::init_type();
72  MouseWatcherGroup::init_type();
73  MouseWatcherRegion::init_type();
74  Trackball::init_type();
75  Transform2SG::init_type();
76 }
This is a convenience class to specialize ConfigVariable as a boolean type.
This is a convenience class to specialize ConfigVariable as a floating-point type.