diff options
author | 2016-09-20 01:24:36 -0700 | |
---|---|---|
committer | 2016-09-20 01:24:36 -0700 | |
commit | 32ea8266a31080330a6fd84208997dc24b7368fc (patch) | |
tree | a213335cdd8ec6ae03373b7c320b2a624cd7569f /docs | |
parent | 0ed1ce56639faf0b4545ef75fc28e10746f17728 (diff) |
A couple of fixes
- Fix null-reference exception when mapping device to unused (null)
controller index
- Restrict device map to controller configs
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/advanced/devicemap.rst | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/docs/source/advanced/devicemap.rst b/docs/source/advanced/devicemap.rst index be49b7d0091..d834f57aebf 100644 --- a/docs/source/advanced/devicemap.rst +++ b/docs/source/advanced/devicemap.rst @@ -11,7 +11,8 @@ That's where the "mapdevice" configuration setting comes into the picture. This Usage of mapdevice ------------------ -The "mapdevice" xml element is specified under the input xml element in the configuration. It requires two attributes, "device" and "controller". +The "mapdevice" xml element is specified under the input xml element in the controller configuration file. It requires two attributes, "device" and "controller". +NOTE: This setting only take effect when added to the **ctrlr** config file. The "device" attribute specifies the name of the device to match. It may also be a substring of the name. To see the list of available devices, enable verbose output and available devices will then be listed to the console at startup (more on this below). @@ -47,15 +48,7 @@ Listing Available Devices ------------------------- How did we obtain the device names in the above example? Easy! -We simply set verbose to 1 in mame.ini: - -| # -| # CORE DEBUGGING OPTIONS -| # -| **verbose 1** -| - -Then, when MAME is started, it will list available devices to the console. For example: +Run MAME with -v parameter to enable verbose output. It will then list available devices to the console. For example: | Input: Adding Gun #0: | Input: Adding Gun #1: |