New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bounty: $10] Add ability to remap the Service Button #147

Open
markwkidd opened this Issue Apr 26, 2018 · 9 comments

Comments

Projects
None yet
2 participants
@markwkidd
Collaborator

markwkidd commented Apr 26, 2018

Bounty contributions make a difference - please donate at this link today to support this feature

Current situation

In MAME 0.78 and therefore in MAME 2003-Plus there is no way to remap the Service Button and therefore it is stuck on F2. Later MAME versions add the ability to remap this button.

The implications are that the user must have a keyboard, and set their input to either mame_keyboard or simultaneous. They must use F2. There is no way to map the button to the RetroPad.

Resolution

This issue is resolved when there is a patch that allows the service button to be freely mapped to any RetroPad key via the frontend (RetroArch, etc.). It would be nice if it could also be freely reassigned within the MAME input menus but that is not the key requirement.

@grant2258

This comment has been minimized.

Contributor

grant2258 commented Apr 26, 2018

it is remap-able in input general

@grant2258

This comment has been minimized.

Contributor

grant2258 commented Apr 26, 2018

unless someones changed code to disable it

@markwkidd

This comment has been minimized.

Collaborator

markwkidd commented Apr 26, 2018

@grant2258

This comment has been minimized.

Contributor

grant2258 commented Apr 26, 2018

it is mapable in mame 078 i just checked there is more than one service button there is a test button too lemme check the code ill check the f2 specifically ill use the original mame source though this ones been edited quite a bit. I get a feeling this key is hard coded to set the dipswitch

@grant2258

This comment has been minimized.

Contributor

grant2258 commented Apr 26, 2018

to be honest mark look at the history of the changes to the input system there is going to be problems

@grant2258

This comment has been minimized.

Contributor

grant2258 commented Apr 26, 2018

PORT_BITX( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE, DEF_STR( Service_Mode ), KEYCODE_F2, IP_JOY_NONE )

look like game drivers are setting it this way

@grant2258

This comment has been minimized.

Contributor

grant2258 commented Apr 26, 2018

C:\Users\grant\Downloads\mame078s\src\drivers\aburner.c (3 hits)
Line 311: PORT_BITX(0x02, IP_ACTIVE_LOW, IPT_SERVICE, DEF_STR( Service_Mode ), KEYCODE_F2, IP_JOY_NONE )
Line 358: PORT_BITX(0x02, IP_ACTIVE_LOW, IPT_SERVICE, DEF_STR( Service_Mode ), KEYCODE_F2, IP_JOY_NONE )
Line 441: PORT_BITX(0x02, IP_ACTIVE_LOW, IPT_SERVICE, DEF_STR( Service_Mode ), KEYCODE_F2, IP_JOY_NONE )
i dont want to past them all you can just grep KEYCODE_F2 in drivers it will show them all

@grant2258

This comment has been minimized.

Contributor

grant2258 commented Apr 26, 2018

emit keycode_f2 is a work around mark

@markwkidd

This comment has been minimized.

Collaborator

markwkidd commented Apr 26, 2018

@markwkidd markwkidd changed the title from TODO: Add ability to remap the Service Button to [Bounty: $10] Add ability to remap the Service Button Oct 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment