First post, by felipe.sanches
Let me tell you about some of the other tricks that i've been doing
with pinball fantasies (maybe it works with other pinball games too)I have successfully integrated dosbox with a set of LEDs on my parallel port. Then I sincronized the flashing of the LEDs with the flashing of some of the playfield lights. I got it sincronized with the P A R T Y lights for example.
How I did it:
pinball fantasies uses the color pallete to flash the lights. Then I have put some aditional code on the VGA emulation so that everytime the software asks the VGA to change a pallete attribute, I check whether the color number is one of the numbers in a table that I maintain. If this color number corresponds to a particular light, then I send a proper value to the parallel port to turn on or off the corresponding light (according to my table of lights versus color indexes).
This way it is possible to make amazing things like a real pinball table replica with the lights flashing in sync with the virtual one.