Input/Output model for Arcade games
Posted: Mon May 25, 2020 8:47 am
Hi, was playing around with with the new CPS1 cores with this device that I make, and couldn't get it to work properly.
https://irkenlabs.com/jvs-pac2/introduction
I'm not 100% what the link between the ARM and the FPGA is, but I got as far as https://github.com/MiSTer-devel/Main_Mi ... /input.cpp
It seems there is an 'impedance mismatch', and that the number of quirks and mismatches will only grow in the future.
Instead of trying to map physical input to either a virtual keyboard or virtual keypads, which again is mapped to whatever the game requires - I would suggest looking to the JVS standard for inspiration to avoid future head-aches.
I.e. have the ARM core keep a state for digital switches, analog channels, coins, LED's etc. The JVS standard has this already defined, and in my experience covers pretty much everything. Example of input switches:
https://irkenlabs.com/jvs-pac2/introduction
I'm not 100% what the link between the ARM and the FPGA is, but I got as far as https://github.com/MiSTer-devel/Main_Mi ... /input.cpp
It seems there is an 'impedance mismatch', and that the number of quirks and mismatches will only grow in the future.
Instead of trying to map physical input to either a virtual keyboard or virtual keypads, which again is mapped to whatever the game requires - I would suggest looking to the JVS standard for inspiration to avoid future head-aches.
I.e. have the ARM core keep a state for digital switches, analog channels, coins, LED's etc. The JVS standard has this already defined, and in my experience covers pretty much everything. Example of input switches: