Skip to content

Events

The concept of events is one of the most important concepts in MPF. MPF is an event-driven framework, and just about everything is either posting and event or responding to an event that was posted.

There are several important concepts about events in MPF that you should understand:

Event Reference

Here's a list of all the "built in" events that are included in MPF and the MPF MC. Of course your own machine will include many events that aren't on the list here.

Every event in MPF is just a string of text. You'll see that in many cases, the actual event that's posted has a slight variation of the event text, typically incorporating something about which mechanism or logic device posted the event.

For example, the switch event called (name)_active will replace the "(name)" part of the event text with the actual switch name. So the when a switch called s_left_slingshot is activated, it will posted an event called switch_s_left_slingshot_active.

Device Indexes


Something missing or wrong? You can fix it!

This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?

Please help us! You can fix it yourself and be an official "open source" contributor!

It's easy! See our Beginner's guide to editing the docs.

Page navigation via the keyboard: < >

You can navigate this site via the keyboard. There are two modes:

General navigation, when search is not focused:

  • F , S , / : open search dialog
  • P , , : go to previous page
  • N , . : go to next page

While using the search function:

  • Down , Up : select next / previous result
  • Esc , Tab : close search
  • Enter : go to highlighted page in the results