ButtonEventList
from panda3d.core import ButtonEventList
- class ButtonEventList
Bases:
Bases:
ParamValueBase
Records a set of button events that happened recently. This class is usually used only in the data graph, to transmit the recent button presses, but it may be used anywhere a list of
ButtonEvents
is desired.Inheritance diagram
- __init__()
- __init__(copy: ButtonEventList)
- add_event(event: ButtonEvent)
Adds a new event to the end of the list.
- add_events(other: ButtonEventList)
Appends the events from the other list onto the end of this one.
- assign(copy: ButtonEventList) → ButtonEventList
- clear()
Empties all the events from the list.
- property events → Sequence[ButtonEvent]
Returns the nth event in the list. This does not remove the event from the list; the only way to remove events is to empty the whole list with
clear()
.
- static get_class_type() → TypeHandle
- get_event(n: int) → ButtonEvent
Returns the nth event in the list. This does not remove the event from the list; the only way to remove events is to empty the whole list with
clear()
.
- update_mods(mods: ModifierButtons)
Updates the indicated
ModifierButtons
object with all of the button up/down transitions indicated in the list.