Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: Stormrider on October 06, 2009, 04:08:23 am
-
Hi. I use the overclocking feature very frequently. Now, they have removed it from the ~ key menu to the slider controls menu. Do you know how I could revert this to the old way. Or, even better and possibly easier, just replace the call from the ~ key to master volume and put the overclocking slider there instead? Any idea what file has to be modified for this? Thanx a lot.
-
I've found out some information:
In 127u1 they move the on screen display to slider controls
In 127u6 they remove the use of the ~ key
In 128u5 they restore the master volume to the ~ key
I'e downloaded the 128u5 diff, trying to guess the lines where they restore the master volume and I've found this for ui.c
/* if the on-screen display isn't up and the user has toggled it, turn it on */
if ((machine->debug_flags & DEBUG_FLAG_ENABLED) == 0 && ui_input_pressed(machine, IPT_UI_ON_SCREEN_DISPLAY))
return ui_set_handler(ui_slider_ui_handler, 1);
If you edit 134 source, you can indeed see those lines in ui.c. I wonder what happens if I change ui_slider_ui_handler, 1 with a different number. I can't wait to arrive home to try it.
-
guess you also must find out if the ~ key is not used for something else in the newer mame versions
-
What do you mean?
-
return ui_set_handler(ui_slider_ui_handler, 1);
Definitely, that's the line to edit. I have changed it with other lines and the behaviour of the ~ key changes to, for instance, displaying the save game dialogue. However, I've tried everything for the overclocking menu and no results. Ant idea? Could anyone who can read C, take a look at ui.c and see how to call the overclock slider from there? thanx.