Panda3D
|
Manages a list of InputDevice objects, as returned by various InputDeviceManager methods. More...
Public Member Functions | |
__init__ () | |
__init__ (const InputDeviceSet copy) | |
clear () | |
Removes all InputDevices from the collection. More... | |
InputDevice | operator [] (int index) |
Returns the nth InputDevice in the collection. More... | |
InputDeviceSet | operator= (const InputDeviceSet copy) |
output (Ostream out) | |
Writes a brief one-line description of the InputDeviceSet to the indicated output stream. More... | |
reserve (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. More... | |
int | size () |
Returns the number of devices in the collection. More... | |
write (Ostream out, int indent_level) | |
Writes a complete multi-line description of the InputDeviceSet to the indicated output stream. More... | |
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.
__init__ | ( | ) |
__init__ | ( | const InputDeviceSet | copy | ) |
clear | ( | ) |
Removes all InputDevices from the collection.
InputDevice operator [] | ( | int | index | ) |
Returns the nth InputDevice in the collection.
InputDeviceSet operator= | ( | const InputDeviceSet | copy | ) |
output | ( | Ostream | out | ) |
Writes a brief one-line description of the InputDeviceSet to the indicated output stream.
reserve | ( | 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.
int size | ( | ) |
Returns the number of devices in the collection.
write | ( | Ostream | out, |
int | indent_level | ||
) |
Writes a complete multi-line description of the InputDeviceSet to the indicated output stream.