direct.controls.ControlManager

from direct.controls.ControlManager import ControlManager

Inheritance diagram

Inheritance diagram of direct.controls.ControlManager

class ControlManager(enable=True, passMessagesThrough=False)[source]

Bases: object

__init__(self, enable=True, passMessagesThrough=False)[source]
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().

collisionsOff(self)[source]
collisionsOn(self)[source]
delete(self)[source]
deleteCollisions(self)[source]
disable(self)[source]
disableAvatarJump(self)[source]

prevent

enable(self)[source]
enableAvatarJump(self)[source]

Stop forcing the ctrl key to return 0’s

get(self, name)[source]
getIsAirborne(self)[source]
getSpeeds(self)[source]
lockControls(self)[source]
monitor(self, foo)[source]
notify = <direct.directnotify.Notifier.Notifier object>
placeOnFloor(self)[source]
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]
setTag(self, key, value)[source]
setWASDTurn(self, turn)[source]
stop(self)[source]
unlockControls(self)[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