This Event class represents DOF-related events.
The event target for this event type is the mainWindow object.
There's currently only one subtype of this event:
This event is fired at each change to a DOF named event, so you'll get one notification when PinballY turns the event ON, and another when PinballY turns the event OFF. Most of the DOF events that PinballY generates are momentary "pulsed" events, meaning that PinballY turns the event ON briefly and then turns it right back OFF. For example, the events representing key presses, menu selections, and other discrete UI actions are all "pulsed". For such events, you'll see two dofevent notifications in quick succession, one for the change to ON status, and one for the change to OFF status. The DOF named events that represent the current UI state (PBYWheel, PBYMenu, etc) are left ON as long as the state is in effect, as are the named events that represent the current game ROM selection in the wheel UI.
This event is cancelable. If you call preventDefault() on the event object passed to the handler, PinballY won't update the DOF named event after all.
DOF-related events are only fired if DOF is installed in your system and PinballY is connected to it. PinballY doesn't bother firing the events if DOF isn't being used.
This event type has all of the standard event properties and methods (see the Event class), plus the additional properties listed below.