Panda3D
Loading...
Searching...
No Matches
config_device.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_device.cxx
10 * @author drose
11 * @date 2000-05-04
12 */
13
14#include "config_device.h"
15#include "analogNode.h"
16#include "buttonNode.h"
17#include "clientAnalogDevice.h"
18#include "clientBase.h"
19#include "clientButtonDevice.h"
20#include "clientDevice.h"
21#include "clientDialDevice.h"
22#include "clientTrackerDevice.h"
23#include "dialNode.h"
24#include "evdevInputDevice.h"
25#include "inputDevice.h"
26#include "inputDeviceNode.h"
27#include "linuxJoystickDevice.h"
28#include "trackerNode.h"
29#include "virtualMouse.h"
30#include "xInputDevice.h"
31
32#include "dconfig.h"
33
34#if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_DEVICE)
35 #error Buildsystem error: BUILDING_PANDA_DEVICE not defined
36#endif
37
38Configure(config_device);
39NotifyCategoryDef(device, "");
40
41ConfigVariableBool asynchronous_clients
42("asynchronous-clients", true);
43
44ConfigureFn(config_device) {
46}
47
48/**
49 * Initializes the library. This must be called at least once before any of
50 * the functions or classes in this library can be used. Normally it will be
51 * called by the static initializers and need not be called explicitly, but
52 * special cases exist.
53 */
54void
56 static bool initialized = false;
57 if (initialized) {
58 return;
59 }
60 initialized = true;
61
62 AnalogNode::init_type();
63 ButtonNode::init_type();
64 ClientAnalogDevice::init_type();
65 ClientBase::init_type();
66 ClientButtonDevice::init_type();
67 ClientDevice::init_type();
68 ClientDialDevice::init_type();
69 ClientTrackerDevice::init_type();
70 DialNode::init_type();
71 InputDevice::init_type();
72 InputDeviceNode::init_type();
73 TrackerNode::init_type();
74 VirtualMouse::init_type();
75
76#ifdef PHAVE_LINUX_INPUT_H
77 EvdevInputDevice::init_type();
78 LinuxJoystickDevice::init_type();
79#endif
80
81#ifdef _WIN32
82 XInputDevice::init_type();
83#endif
84}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as a boolean type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libdevice()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.