Panda3D

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