direct.controls.ControlManager¶
from direct.controls.ControlManager import ControlManager
Inheritance diagram
-
class
ControlManager
(enable=True, passMessagesThrough=False)[source]¶ Bases:
object
-
add
(self, controls, name='basic')[source]¶ Add a control instance to the list of available control systems.
- Parameters
controls – an avatar control system.
name (str) – any key that you want to use to refer to the controls later (e.g. using the use(<name>) call).
See also:
use()
.
-
notify
= <direct.directnotify.Notifier.Notifier object>¶
-
remove
(self, name)[source]¶ Remove a control instance from the list of available control systems.
- Parameters
name – any key that was used to refer to the controls when they were added (e.g. using the add(<controls>, <name>) call).
See also:
add()
.
-
setSpeeds
(self, forwardSpeed, jumpForce, reverseSpeed, rotateSpeed, strafeLeft=0, strafeRight=0)[source]¶
-
use
(self, name, avatar)[source]¶ name is a key (string) that was previously passed to add().
Use a previously added control system.
See also:
add()
.
-
wantWASD
= 0¶
-