Main > Software Forum

Rotary Controls/ Druin's Interface

(1/5) > >>

Derrick Renaud:
I need some more testing.  If anyone has their rotary joystick hooked up with a Druin-type interface, please test this code.  So if your rotary control is set to use inc/dec buttons to rotate, I need you to test this.  You will have to apply the attached diff and compile it yourself.

What it does is inc/dec only once as soon as the button is pressed.  Then does not change until the button is released and pressed again.  That way you get exactly 1 rotation every time a button is pressed.  No more messing with MAME analog settings to get your control to work close to proper.

I added the ability to set your "Analog Controls - Digital Speed" to 0.  Meaning MAME will not do the inc/dec for you.

So to test, set your "Analog Controls - Digital Speed" to 0.  Then set your "Analog Controls - Sensitivity" to 100%.  Then 1 press makes 1 step.

Remember the Ikari games have a copy protection hack that causes it to skip 1 step out of 13.  So that is normal.  Also please try autocenter to see if it works as you would expect if you really needed to use it.


thanks,
D.

2600:
Worked fine for me on ikari and victroad.  Different driver, but I also tried ikari3, but it seems to be broken on rotating with keyboard currently even on the standard build.  I don't have time right now to test others, but am willing to test later if you need them tested.  I didn't try the autocenter, because I wasn't sure what the functionality was suppose to do. 


BTW, IIRC isn't the protection hack only for Guerilla War?  Why not have the hack  implemented only for Guerilla War instead of all snk_rot12 games?  If the protection is different then the one I'm thinking about, do you have any more information on it?


Derrick Renaud:

--- Quote from: 2600 on December 04, 2006, 03:31:52 pm ---Different driver, but I also tried ikari3, but it seems to be broken on rotating with keyboard currently even on the standard build.  I don't have time right now to test others, but am willing to test later if you need them tested.  I didn't try the autocenter, because I wasn't sure what the functionality was suppose to do. 

--- End quote ---

What kind of driver are you using.  This is meant to handle rotary type devices that use a button to increment and a button to decrement.  Setting the Digital Speed to 0 now makes MAME inc/decrement only once for each button press.

The current MAME is not broken when rotating with the keyboard.  If you hold the button down it increments at the Digital Speed * Sensitivity once every V-Blank/Input poll.  My code makes it increment once * Sensitivity for each press/release cycle.


--- Quote from: 2600 on December 04, 2006, 03:31:52 pm ---BTW, IIRC isn't the protection hack only for Guerilla War?  Why not have the hack  implemented only for Guerilla War instead of all snk_rot12 games?  If the protection is different then the one I'm thinking about, do you have any more information on it?

--- End quote ---

I have not really looked into it to see when it is needed.  But if it is truly meant only for Guerrilla War then, yes it should be fixed for the Ikari Games.  I'll take a peek if no one else does.

D.

2600:

--- Quote from: Derrick Renaud on December 05, 2006, 03:18:44 pm ---
What kind of driver are you using.  This is meant to handle rotary type devices that use a button to increment and a button to decrement.  Setting the Digital Speed to 0 now makes MAME inc/decrement only once for each button press.

The current MAME is not broken when rotating with the keyboard.  If you hold the button down it increments at the Digital Speed * Sensitivity once every V-Blank/Input poll.  My code makes it increment once * Sensitivity for each press/release cycle.

--- End quote ---
Your correct current MAME works fine on Ikari3, I mistakenly used the same cfgs as used with your patch.  This had Digital Speed set to 0 on the current build which obviously isn't going to work.

However, I am having trouble with your patch and Ikari 3.  All cfgs were deleted during testing.  Digital Speed set to 0 and Sensitivity set to 100%.  I understand that this is for keyboard devices and I'm using the default rotation keys of Z and X.  The guy will rotate a quarter turn after a couple "button" pushes, but no more after that first rotation.  Double checked on a keyboard as well.  I haven't tested any other games then mentioned before.



--- Quote ---I have not really looked into it to see when it is needed.  But if it is truly meant only for Guerrilla War then, yes it should be fixed for the Ikari Games.  I'll take a peek if no one else does.

--- End quote ---
Sounds good.  That's what snk.c says, but I didn't know if there was any past history that I wasn't aware of and wasn't sure what the best way to implement it.

2600:
I see why you were asking about what driver I was using.  What I meant was Ikari3 is in a different MAME driver then ikari and Victory road, snk68 vs snk.  Sorry about the confusion.

Navigation

[0] Message Index

[#] Next page

Go to full version