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
-
ButtonEventList
(void)¶
-
ButtonEventList
(ButtonEventList const ©)¶
-
void
add_event
(ButtonEvent event)¶ Adds a new event to the end of the list.
-
void
add_events
(ButtonEventList const &other)¶ Appends the events from the other list onto the end of this one.
-
void
clear
(void)¶ Empties all the events from the list.
-
static TypeHandle
get_class_type
(void)¶
-
ButtonEvent const &
get_event
(int n) const¶ 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()
.
-
int
get_num_events
(void) const¶ Returns the number of events in the list.
-
void
update_mods
(ModifierButtons &mods) const¶ Updates the indicated
ModifierButtons
object with all of the button up/down transitions indicated in the list.
-
void
write
(std::ostream &out, int indent_level = 0) const¶
-