Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: reko19 on May 16, 2008, 12:53:59 pm
-
I am trying to figure out default mapping for the zsnesw so that I could program my IPAC accordingly. Default settings found in ziput.cfg are listed below. Some of the keys(i.e. 31, 30, 200, 208) do not correspond to any SDL key codes. What am I missing?
; Keys for Select, Start, Up, Down, Left, Right, X, A, L, Y, B, R
pl1selk=54
pl1startk=28
pl1upk=200
pl1downk=208
pl1leftk=203
pl1rightk=205
pl1Xk=31
pl1Ak=45
pl1Lk=32
pl1Yk=30
pl1Bk=44
pl1Rk=46
-
have you tried just going into the GUI and setting them up? I set my Ipac up for MAME first, then just went into ZSNES and configured my controls in the GUI.
Guess I'm not sure what you're asking.
-
this is one way of doing it. i was going to set IPAC using default zsnesw key mapping and was trying to figure out based on config file what it is
-
It has been a while, but cant you simply start the zsnesw.exe (?) file and then go into the keyboard settings menu and see what the settings are set to .... instead of trying to decipher the INI file directly?
-
yeah your just making it more difficult for yourself for no apparent reason really :dunno
set your ipac the way you want it and set eveythng else you want to use with your same ipac settings.
you kinda got it going backwards :dizzy:
-
Actually I keep the emulator settings as default and simply reconfigure my encoder when I switch emulators. This allows me to upgrade emulators with new versions without having to remember how to reset all the defaults manually every time.
-
yeah your just making it more difficult for yourself for no apparent reason really :dunno
set your ipac the way you want it and set eveythng else you want to use with your same ipac settings.
you kinda got it going backwards :dizzy:
That's what I tried to tell him! :dunno
-
While it's easy to change each emu's inputs, if you keep updating it can be
a PITA repetitive. (One of the reasons I stopped releasing my own version of mame. :-\) I understand the set and forget (even though I upgrade regularly) mentality. Plus from the coding point of view I'm sort interested in what's going on: the numbers have to come from somewhere.
Very quick skim of the source, looks like the windows version up, down, left, right (200,208,203,205) are VB/VC scancode numbers for the arrow keys, and the other OS compiles use different numbers for the direction buttons. OTOH, all OS compiles use the same key numbers for the other inputs. Too many different "scancode"s on google, hmm...
It almost looks like keynumber+1. Err, like from the table on this page (http://www.hitex.demon.co.uk/x86/keynumber.html) (plus one). I think that would result in capslock, a, s, leftshift, z, x, slash and backslash? (Easier for me just to download and test zsnes inputs... Nahhh, not at work. ;) )
As others said, it's easier to remap in the emu, save the remapped inputs file somewhere, and just copy it to the new folder when you upgrade.
But if you want to do it your way, keep posting on what you find; I'll see it I can help even if others keep telling you to do it differently. :)
-
You know we don't think outside the box.
-
unclet was right. the easiest way is to enable GUI in zsnesw, go into config and check the key assignment. thanks everyone for chiming in.
-
Very quick skim of the source, looks like the windows version up, down, left, right (200,208,203,205) are VB/VC scancode numbers for the arrow keys, and the other OS compiles use different numbers for the direction buttons. OTOH, all OS compiles use the same key numbers for the other inputs. Too many different "scancode"s on google, hmm...
They are DirectInput keycodes.