InputDeviceSet

from panda3d.core import InputDeviceSet
class InputDeviceSet

Bases: DTOOL_SUPER_BASE

Manages a list of InputDevice objects, as returned by various InputDeviceManager methods. This is implemented like a set, meaning the same device cannot occur more than once.

Inheritance diagram

Inheritance diagram of InputDeviceSet

__init__(*args, **kwargs)
assign()

C++ Interface: assign(const InputDeviceSet self, const InputDeviceSet copy)

clear()

C++ Interface: clear(const InputDeviceSet self)

/**
  • Removes all InputDevices from the collection.

*/

output()

C++ Interface: output(InputDeviceSet self, ostream out)

/**
  • Writes a brief one-line description of the InputDeviceSet to the indicated

  • output stream.

*/

reserve()

C++ Interface: reserve(const InputDeviceSet self, int num)

/**
  • This is a hint to Panda to allocate enough memory to hold the given number

  • of InputDevices, if you know ahead of time how many you will be adding.

*/

write()

C++ Interface: write(InputDeviceSet self, ostream out, int indent_level)

/**
  • Writes a complete multi-line description of the InputDeviceSet to the

  • indicated output stream.

*/