InputDeviceSet

from panda3d.core import InputDeviceSet
class InputDeviceSet

Bases:

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

__getitem__(index: int) → InputDevice

Returns the nth InputDevice in the collection.

__init__()
__init__(copy: InputDeviceSet)
assign(copy: InputDeviceSet) → InputDeviceSet
clear()

Removes all InputDevices from the collection.

output(out: ostream)

Writes a brief one-line description of the InputDeviceSet to the indicated output stream.

reserve(num: int)

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.

size() → int

Returns the number of devices in the collection.

write(out: ostream, indent_level: int)

Writes a complete multi-line description of the InputDeviceSet to the indicated output stream.