MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

sz72
MAME Fan
Reged: 08/20/07
Posts: 78
Send PM
Re: Need help with Cruis'n World driver
08/28/12 06:55 PM


> Well,
>
> in Cruis'n World/USA the 4 view positions are mapped to 4 buttons. What i am trying
> to code is the cycling between the 4 views by using a single button, in this case the
> first view (0x0010).
>
> The "working" code i wrote in the first post is good up to the "continue" screen:
> while there the countdown is extra fast (like you are pressing again and again a view
> button) makeing impossible t continue the game (in the clean driver, exactly like in
> the real arcade machine, if you reach the "continue game" screen, pressing repeately
> a "view" button makes the countdown going faster.
>
> I am trying to modify the "working" code in first post in order to give the view
> change input, but avoiding the continuos press of the view button thus allowing the
> player to continue the game...
>
> hope i wrote it better now, sorry if i waas not clear before
>
> If you are asking what this could be used for, well, in Racing Cabinets not always
> you have 4 buttons, one for each view, so it would be useful for a Racing MAME Cab to
> have a feature like this.

So you need something where when the user presses the first view button for the first time the game thinks that the user has pressed the first view button,when the user presses the first view button for the second time the game thinks that the user has pressed the second view button,when the user presses the first view button for the third time the game thinks that the user has pressed the third view button,when the user presses the first view button for the fourth time the game thinks that the user has pressed the fourth view button,when the user presses the first view button for the fifth time the game thinks that the user has pressed the first view button, and so on.

One way to do it is to rotate bits 4-7 of the value returned by readinputport(1) by N, where N is a number betwen 0 and 3 that represents the currently selected view, and update N every time the first view button is pressed.







Entire thread
Subject Posted by Posted on
* Need help with Cruis'n World driver baritonomarchetto 08/27/12 04:12 PM
. * Re: Need help with Cruis'n World driver sz72  08/27/12 08:44 PM
. * Re: Need help with Cruis'n World driver baritonomarchetto  08/28/12 09:23 AM
. * Re: Need help with Cruis'n World driver sz72  08/28/12 01:30 PM
. * Re: Need help with Cruis'n World driver baritonomarchetto  08/28/12 02:01 PM
. * Re: Need help with Cruis'n World driver sz72  08/28/12 03:51 PM
. * Re: Need help with Cruis'n World driver baritonomarchetto  08/28/12 04:19 PM
. * Re: Need help with Cruis'n World driver sz72  08/28/12 06:55 PM
. * Re: Need help with Cruis'n World driver baritonomarchetto  08/29/12 02:27 PM
. * Re: Need help with Cruis'n World driver etabeta  08/29/12 04:04 PM
. * Re: Need help with Cruis'n World driver baritonomarchetto  08/29/12 04:37 PM
. * Re: Need help with Cruis'n World driver etabeta  08/30/12 07:32 AM
. * Re: Need help with Cruis'n World driver baritonomarchetto  08/30/12 05:54 PM
. * Re: Need help with Cruis'n World driver etabeta  08/31/12 08:27 AM
. * Re: Need help with Cruis'n World driver baritonomarchetto  09/03/12 07:21 PM
. * Re: Need help with Cruis'n World driver any  09/06/12 06:04 AM
. * Re: Need help with Cruis'n World driver baritonomarchetto  09/06/12 02:52 PM
. * Re: Need help with Cruis'n World driver any  09/07/12 05:52 AM
. * Re: Need help with Cruis'n World driver baritonomarchetto  09/10/12 02:19 PM
. * Re: Need help with Cruis'n World driver baritonomarchetto  09/13/12 05:05 PM
. * Re: Need help with Cruis'n World driver R. Belmont  09/18/12 05:05 PM
. * Re: Need help with Cruis'n World driver baritonomarchetto  09/18/12 05:28 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 106 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4514