diff options
author | 2021-11-03 19:22:36 +1100 | |
---|---|---|
committer | 2021-11-03 19:41:40 +1100 | |
commit | d29287e0925a308e3cdaba615e32f194071e22d9 (patch) | |
tree | b4c684c5a4db8a916edbcd275d8495b8a4c9971d /src/frontend/mame/ui/analogipt.cpp | |
parent | dce1fd7dfa91b41b82af90069e133d2a83e86976 (diff) |
-emu/ioport.cpp: Made default behaviour better.
* 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.
Diffstat (limited to 'src/frontend/mame/ui/analogipt.cpp')
-rw-r--r-- | src/frontend/mame/ui/analogipt.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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; |