diff options
author | 2023-02-05 04:50:30 +1100 | |
---|---|---|
committer | 2023-02-05 05:01:40 +1100 | |
commit | b98fb7c98e5e44d436808eac46c927d3d0dc1f3f (patch) | |
tree | cd411d4fe24cd36862c78165723833e42de27303 /docs/source | |
parent | 519554c8464ba8e8641e474bc949a2a0beae77ae (diff) |
Small batch of input refactoring:
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.
Diffstat (limited to 'docs/source')
-rw-r--r-- | docs/source/advanced/ctrlr_config.rst | 6 | ||||
-rw-r--r-- | docs/source/techspecs/inputsystem.rst | 4 |
2 files changed, 7 insertions, 3 deletions
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: </input> </system> -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. diff --git a/docs/source/techspecs/inputsystem.rst b/docs/source/techspecs/inputsystem.rst index 9145dba2fa2..d7f0c1a74c4 100644 --- a/docs/source/techspecs/inputsystem.rst +++ b/docs/source/techspecs/inputsystem.rst @@ -308,7 +308,9 @@ Input provider modules are part of the OS-dependent layer (OSD), and are not directly exposed to emulation and user interface code. Input provider modules are responsible for detecting available host input devices, setting up input devices for the input manager, and providing -callbacks to read the current state of input device items. +callbacks to read the current state of input device items. Input +provider modules may also provide additional default input assignments +suitable for host input devices that are present. The user is given a choice of input modules to use. One input provider module is used for each of the four input device classes (keyboard, |