Skip to content

microphone.is_event() question #36

@microbit-carlos

Description

@microbit-carlos

Just to make sure this is correct:

  • was_event(event) returns true if the event was captured (in any order) since the last time was_event() or get_events() was called, and clears the history
  • is_event(event) only returns true if the last captured event in the list matches, no matter how long ago it was, and it doesn't clear the history
  • current_event() returns the event that is happening "right now", which is also added to the event list and doesn't clear it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions