Ver Fonte

support wstring

David Rose há 20 anos atrás
pai
commit
e9be252eca
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      direct/src/showbase/EventManager.py

+ 2 - 0
direct/src/showbase/EventManager.py

@@ -42,6 +42,8 @@ class EventManager:
             return eventParameter.getDoubleValue()
         elif (eventParameter.isString()):
             return eventParameter.getStringValue()
+        elif (eventParameter.isWstring()):
+            return eventParameter.getWstringValue()
         else:
             # Must be some user defined type, return the ptr
             # which will be downcast to that type