29 InputDeviceManager() : _lock(
"InputDeviceManager") {
35 void InputDeviceManager::
40 _global_ptr =
new WinInputDeviceManager;
41 #elif defined(__APPLE__) 42 _global_ptr =
new IOKitInputDeviceManager;
43 #elif defined(PHAVE_LINUX_INPUT_H) 44 _global_ptr =
new LinuxInputDeviceManager;
58 for (
size_t i = 0; i < _connected_devices.
size(); ++i) {
74 for (
size_t i = 0; i < _connected_devices.
size(); ++i) {
97 #ifdef PHAVE_LINUX_INPUT_H 100 _inactive_devices.remove_device(device);
103 throw_event(
"connect-device", device);
119 throw_event(
"disconnect-device", device);
void init_libputil()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to MutexHolder, but for a light mutex.