mpf icon indicating copy to clipboard operation
mpf copied to clipboard

Add generic "initial_state" setting to devices?

Open toomanybrians opened this issue 7 years ago • 2 comments

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"

toomanybrians avatar Jan 12 '17 06:01 toomanybrians

Related to #726

jabdoa2 avatar Jan 13 '17 13:01 jabdoa2

@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

jabdoa2 avatar Oct 22 '17 15:10 jabdoa2