well i am having a simple control panel with two joysticks, 6 buttons each, player1 start, player2 start,pause, exit and two pinball buttons on the sides of the cp. will this all be configured properly on the default keycode leaving me without an issue? .i am a bit confused about these default keycodes, can someone explain this to me
You asked for it; sorry if it's a little too technical.
This is something that isn't as straight forward as most people think. Both mame can be remapped, and the ipac can be remapped. And any physical (digital) input can be wired to any ipac port. Mame has a default keycode, for example "pause" default is 'P' key, and ipac has a port that's default key matches mame's default keycode for pause, so it's labeled as such; same with the other ports on the ipac. This labeling makes it easier to wire
if you leave both mame and ipac at the default, but since you can change either the ipac or mame, you don't
have to follow the labels either.
Wild example: ipac port labeled "p1b2", defaults to output 'alt' keycode, but changed to output the 'A' keycode, and wired to p2coin button on CP. Mame's default for p2b1 includes the 'A' keycode, but remapped so p2b1 has the 'W' key instead, and p2coin has the 'A' key.
So imagine physical input ---- ipac port ---- ipac output keycode ---- game's inputs in mame
Any of the above "----" links can be remapped or rewired. Which ones people change is totally up to the user (in most cases). I prefer changing mame's maps because it can do everything the others do plus more and more often and automatically, and only change I do with ipac-type encoders is
remove the shift fuction. (I love mame's ctrlr file.) Others like changing only ipac's keycodes and leave mame's inputs alone.
OP, this is what I'd suggest you do:
Wire buttons & joysticks to ipac ve as labeled, leave ipac ve to it's defaults, leave mame to it's defaults (which match) except for a few games, like qbert. Qbert had a normal 4-way joystick (that only sent carnidal directions), but rotated 45 degrees. So you want mame to see the diagonals as the game's "cardinal" directions. Start qbert, press tab, select "Inputs (this game)", and remap so the joystick's diagonals are are seen by mame as the game's cardinal dirrections (example: player 1 up mapped to joyleft joyup). Exit mame. Assuming you have write pression in mame's cfg folder, mame will save it, and every time you start qbert, it will be mapped correctly.