Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Coin Door Switch Like A Real Cabinet

Recommended Posts

Hi guys,


   I found a way to run the END key exactly how the switch of a pinball cab, ie it remains ON until it is pressed and goes OFF when released (at this time it becomes ON when pressed and returns to OFF at the next pressure).


May be an idea to put it in the official version of VPM (maybe mapped in another key as suggested by Arngrim)?


To activate this you need to edit these lines

wpc\alvg.h(35): COREPORT_BITTOG(  0x0400, "Ticket",              KEYCODE_END)
wpc\bowlgames.c(479): COREPORT_BITTOG(  0x0100, "Coin Door",      KEYCODE_END)
wpc\gts3.h(69): COREPORT_BITTOG(  0x0040, "Coin Door",        KEYCODE_END)
wpc\taito.h(16): COREPORT_BITTOG(  0x0020, "Coin Door",        KEYCODE_END) 
wpc\vd.c(141): COREPORT_BITTOG(0x8000, DEF_STR(Unknown),KEYCODE_END)
wpc\wpc.h(20): COREPORT_BITTOG(  0x0100, "Coin Door",      KEYCODE_END) 
wpc\zacproto.c(177): COREPORT_BITTOG(0x0002, "Coin Door",     KEYCODE_END) 
wpc\zacproto.c(278): COREPORT_BITTOG(0x0002, "Coin Door",     KEYCODE_END) 
wpc\zacproto.c(381): COREPORT_BITTOG(0x0002, "Coin Door",     KEYCODE_END) 



If you want to try this patch easily here you can find the latest build recompiled.


What do you think about this?


Share this post

Link to post
Share on other sites

I bought an interlock switch for my pincab to do this very thing. Although I thought there was a setting already for it.

So not fully understanding what you've done here...Is this a dll that I can add to effect all tables or is this code something that needs added to each tables script?



Sent from my iPad using Tapatalk

Share this post

Link to post
Share on other sites

I thought I attached the picture, but I guess it didn't work. 


I used the idea that you shared about the microswitch here:

Works perfectly for me.  I agree with others comments that it "could" be misinterpreted as open when closed and visa versa,  but I think that will be rare.  It has been working perfectly for me.  :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now