Browse Source

device: ensure libputil is initialized before scanning devices

rdb 7 years ago
parent
commit
9618cd2193
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/device/inputDeviceManager.cxx

+ 2 - 0
panda/src/device/inputDeviceManager.cxx

@@ -33,6 +33,8 @@ InputDeviceManager() : _lock("InputDeviceManager") {
  */
 void InputDeviceManager::
 make_global_ptr() {
+  init_libputil();
+
 #ifdef _WIN32
   _global_ptr = new WinInputDeviceManager;
 #elif defined(__APPLE__)