Main > Main Forum
Controls.ini and the GP-49
SirPoonga:
No, there will be no djoy4way because it produced redundant data. Ever normalize a database?
Look at BOTH FEDEV_descriptions_to_controls.txt (d2c) and FEDEV_controls_to_labels.txt (c2l). Dump them directly into a database, each get their own table. Setup a relationship between the second field of d2c with the first field of c2l. You will see it is a 3rd degree N normalized database.
With that said let's look at the examples.
First the2way joys.
From d2c:
2-way Joystick (Horizontal)|joy2way
2-way Joystick (Vertical)|vjoy2way
From c2l:
joy2way|JOYSTICK_LEFT|Left|
joy2way|JOYSTICK_RIGHT|Right|
vjoy2way|JOYSTICK_UP|Up|
vjoy2way|JOYSTICK_DOWN|Down|
Hey look, they ARE different. BTW, if you see in 2way games that you need to define every direction (and urebel, if you don't they must have changed it) it is because, unless they changed it recently, there is no joy2way constant defined in mame. They use joy8way for those, check listxml and listinfo on older version, you will see. I haven't looked into recent ersions, maybe they finally fixed it when they overhauled the input system. I should see what they did then.
Now, pacman vs qbert
d2c:
4-way Joystick|joy4way
Diagonal 4-way Joystick|joy4way
c2l:
joy4way|JOYSTICK_UP|Up|
joy4way|JOYSTICK_DOWN|Down|
joy4way|JOYSTICK_LEFT|Left|
joy4way|JOYSTICK_RIGHT|Right|
This is because by defauly mame (and real arcade) just rotate the hardware, not the software. So if you push up/right in qbert you are actually pushing up on the hardware and in mame by default. Plus the second field there is the ctrlr file constants so FE devs can read your ctrlr file and relate teh data correctly if everything is left at defaults.
So if I added this to c2l:
djoy4way|JOYSTICK_UP|Up|
djoy4way|JOYSTICK_DOWN|Down|
djoy4way|JOYSTICK_LEFT|Left|
djoy4way|JOYSTICK_RIGHT|Right|
Is that how I would do it? Why then since it is redundant data.
So putting your 49way in diagonal mode is a hack by the 49way since you don't rotate the joystick. Actually, isn't it send the cardinal directions anyway??
BTW, the third column is default label, this is so when you go through the wizards on the website to add a game something is entered into the label by default.
Anyway, don't get caught up in what that relational field is vs mame's constants. I used mame's constants as a guide for that. The purpose of that field is to relate the two tables so when one comes across the description they can get the ctrlr file constants used by that control. And since a normal 4way and a diagonal use the same constants there is no need to duplicate data.
Toonces:
--- Quote from: SirPoonga on April 07, 2005, 08:57:24 pm ---No, there will be no djoy4way because it produced redundant data.
--- End quote ---
SirPoonga:
Yeah. I need to update constrols.dat now. Unfortunately my computer died. Ordered an athlon 64 today though :)
Toonces:
--- Quote from: SirPoonga on April 09, 2005, 01:42:13 am ---Yeah. I need to update constrols.dat now. Unfortunately my computer died. Ordered an athlon 64 today though :)
--- End quote ---
Sweet! It's always unfortuante when your computer dies but it at least provides you with an excuse to get something really nice as a replacement :)
Since GameEx released the new version, I have been trying out all kinds of games and it is really cool to have the joystick reconfigure itself for the games I choose. He is using a csv file for the mapping (same thing posted earlier here) and it works very well. Even Q*Bert :)
MrSaLTy:
Man thats sweet. Got my sticks and wiz49's today and I'm gunna start tinkering. I just hope that Mamewah will be able to have this as a feature also. I just really dig this idea.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version