From b98fb7c98e5e44d436808eac46c927d3d0dc1f3f Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 5 Feb 2023 04:50:30 +1100 Subject: Small batch of input refactoring: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit emu/input.cpp: Fixed regression in display of some joystick inputs. osd/interface: Split up interface classes into a few more files to reduce where the input device interface class needs to be included. Made OSD independent of concrete input_device class. osd/modules/input, emu/inputdev.cpp, emu/ioport.cpp: Allow input devices to provide tokens for controls without standard item types and additional default input assignments. Fixes issues assigning Yen and Backslash on Japanese keyboards. ui/textbox.cpp: Added a fixed-content text box menu class for future use. Got main.h out of emu.h as it’s only used in a very small number of places, mostly for getting the application name. Added eminline.h to attotime.h as it's used without emu.h. Cleaned up forward declarations in emufwd.h a little. --- docs/source/advanced/ctrlr_config.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/source/advanced') diff --git a/docs/source/advanced/ctrlr_config.rst b/docs/source/advanced/ctrlr_config.rst index 9e284f7f945..7c4f5073638 100644 --- a/docs/source/advanced/ctrlr_config.rst +++ b/docs/source/advanced/ctrlr_config.rst @@ -257,5 +257,7 @@ Here’s an example numbering two light guns and two XInput game controllers: -MAME applies ``mapdevice`` elements found inside any applicable ``system`` -element. +MAME applies ``mapdevice`` elements found inside the first applicable ``system`` +element only. To avoid confusion, it’s simplest place the ``system`` element +element applying to all systems (``name`` attribute set to ``default``) first +in the file, and use it to assign input device numbers. -- cgit v1.2.3-70-g09d2