direct.controls.ControlManager
from direct.controls.ControlManager import ControlManager
Inheritance diagram
- class ControlManager(enable=True, passMessagesThrough=False)[source]
Bases:
object- add(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(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().
- use(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
