panda3d.core.InputDeviceSet

class InputDeviceSet

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__() → None
__init__(copy: InputDeviceSet) → None
assign(copy: InputDeviceSet) → InputDeviceSet
Return type

InputDeviceSet

clear() → None

Removes all InputDevices from the collection.

output(out: ostream) → None

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

reserve(num: size_t) → None

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() → size_t

Returns the number of devices in the collection.

Return type

size_t

write(out: ostream, indent_level: int) → None

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