ButtonEventList

from panda3d.core import ButtonEventList
class ButtonEventList

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

Inheritance diagram of ButtonEventList

__init__(*args, **kwargs)
addEvent()

C++ Interface: add_event(const ButtonEventList self, ButtonEvent event)

/**
  • Adds a new event to the end of the list.

*/

addEvents()

C++ Interface: add_events(const ButtonEventList self, const ButtonEventList other)

/**
  • Appends the events from the other list onto the end of this one.

*/

add_event()

C++ Interface: add_event(const ButtonEventList self, ButtonEvent event)

/**
  • Adds a new event to the end of the list.

*/

add_events()

C++ Interface: add_events(const ButtonEventList self, const ButtonEventList other)

/**
  • Appends the events from the other list onto the end of this one.

*/

assign()

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

clear()

C++ Interface: clear(const ButtonEventList self)

/**
  • Empties all the events from the list.

*/

events
getClassType()

C++ Interface: get_class_type()

getEvent()

C++ Interface: get_event(ButtonEventList self, int n)

/**
  • 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().

*/

getNumEvents()

C++ Interface: get_num_events(ButtonEventList self)

/**
  • Returns the number of events in the list.

*/

get_class_type()

C++ Interface: get_class_type()

get_event()

C++ Interface: get_event(ButtonEventList self, int n)

/**
  • 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().

*/

get_num_events()

C++ Interface: get_num_events(ButtonEventList self)

/**
  • Returns the number of events in the list.

*/

updateMods()

C++ Interface: update_mods(ButtonEventList self, ModifierButtons mods)

/**
  • Updates the indicated ModifierButtons object with all of the button up/down

  • transitions indicated in the list.

*/

update_mods()

C++ Interface: update_mods(ButtonEventList self, ModifierButtons mods)

/**
  • Updates the indicated ModifierButtons object with all of the button up/down

  • transitions indicated in the list.

*/

write()

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

/**

*/