mpf
mpf copied to clipboard
Add generic "initial_state" setting to devices?
This might be something to add in the future once we create a simple reusable state machine class...
Currently it's not entirely clear what state devices start in. The default behavior is based on the "enable_events:" setting. If a device has enable events, then when the device is created (or added to a mode) then it is NOT enabled on start, and if there are no enable events, it's enabled.
This is confusing because it's non-intuitive.
Also there are some types of devices that have multiple states (like achievements), so it would be nice to be able to start them in a particular state other than "enabled"
Related to #726
@toomanybrians we got this for logic_blocks now. i did not implement this generically there because is also has features such as restart which would mess with it. where would this be useful? only thing where i could see that would be ball_holds/multiball_locks