mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
resolve circular import
This commit is contained in:
parent
5b82d853e5
commit
1b729fb229
8
direct/src/showbase/InputStateGlobal.py
Normal file
8
direct/src/showbase/InputStateGlobal.py
Normal file
@ -0,0 +1,8 @@
|
||||
"""instantiate global InputState object"""
|
||||
|
||||
# This file had to be separated from MessengerGlobal to resolve a
|
||||
# circular include dependency with DirectObject.
|
||||
|
||||
import InputState
|
||||
|
||||
inputState = InputState.InputState()
|
@ -1,10 +1,5 @@
|
||||
"""instantiate global Messenger object"""
|
||||
|
||||
import Messenger
|
||||
import InputState
|
||||
|
||||
messenger = Messenger.Messenger()
|
||||
|
||||
# inputState is an optional add-on for the messenger, and
|
||||
# that is why it is created here (See Also: InputState.py):
|
||||
inputState = InputState.InputState()
|
||||
|
@ -13,6 +13,7 @@ from PythonUtil import *
|
||||
from ParticleManagerGlobal import *
|
||||
from PhysicsManagerGlobal import *
|
||||
from IntervalManager import ivalMgr
|
||||
from InputStateGlobal import inputState
|
||||
|
||||
import Task
|
||||
import EventManager
|
||||
|
Loading…
x
Reference in New Issue
Block a user