From d29287e0925a308e3cdaba615e32f194071e22d9 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 3 Nov 2021 19:22:36 +1100 Subject: -emu/ioport.cpp: Made default behaviour better. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * If an input is configured to some combination of controls that are not present at all, ignore the setting altogether for the session. * Fixed relative axes with PORT_RESET not responding to absolute controls (MT07685). * Fixed relative axes not responding to an absolute control if the value doesn’t change every frame (eg. holding a stick against the stop). * Changed the scaling for absolute controls assigned to relative axes to make defaults more sane (e.g. arkanoid or spdheat with a joystick). -frontend: Fixed some localisation issues in Analog Controls menu. -docs: Added documentation on assigning inputs. --- src/frontend/mame/ui/analogipt.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/frontend/mame/ui/analogipt.cpp') diff --git a/src/frontend/mame/ui/analogipt.cpp b/src/frontend/mame/ui/analogipt.cpp index 3cc732cb82c..f415b0e4d65 100644 --- a/src/frontend/mame/ui/analogipt.cpp +++ b/src/frontend/mame/ui/analogipt.cpp @@ -226,6 +226,7 @@ void menu_analog::handle(event const *ev) { // if selected, reset to default value case IPT_UI_SELECT: + case IPT_UI_CLEAR: newval = data.defvalue; break; @@ -360,25 +361,25 @@ void menu_analog::populate(float &customtop, float &custombottom) { default: case ANALOG_ITEM_KEYSPEED: - text = string_format("%s Digital Speed", field->name()); + text = string_format(_("%1$s Increment/Decrement Speed"), field->name()); subtext = string_format("%d", settings.delta); data.cur = settings.delta; break; case ANALOG_ITEM_CENTERSPEED: - text = string_format("%s Autocenter Speed", field->name()); + text = string_format(_("%1$s Auto-centering Speed"), field->name()); subtext = string_format("%d", settings.centerdelta); data.cur = settings.centerdelta; break; case ANALOG_ITEM_REVERSE: - text = string_format("%s Reverse", field->name()); + text = string_format(_("%1$s Reverse"), field->name()); subtext.assign(settings.reverse ? "On" : "Off"); data.cur = settings.reverse; break; case ANALOG_ITEM_SENSITIVITY: - text = string_format("%s Sensitivity", field->name()); + text = string_format(_("%1$s Sensitivity"), field->name()); subtext = string_format("%d", settings.sensitivity); data.cur = settings.sensitivity; break; -- cgit v1.2.3-70-g09d2