summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source/commandline/sdlconfig.rst
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2024-04-26 06:26:22 +1000
committer Vas Crabb <vas@vastheman.com>2024-04-26 06:26:22 +1000
commitf91b896cda8343fc41f069b32b7ef527364bdea1 (patch)
tree105ca2e24d44ae9ceac3f540abf07b4f00086cde /docs/source/commandline/sdlconfig.rst
parent3b618bd7f04b8164fbcbb1fc106502e05ee85d6a (diff)
input/input_sdl.cpp: Added an SDL lightgun provider.
This does essentially the same thing as the Win32 lightgun provider, mapping the absolute pointer position over the window to gun axes. Also added a bunch of const in the windows input handling code. docs: Bumped version, as features that are not in a releaesd version of MAME are now documented.
Diffstat (limited to 'docs/source/commandline/sdlconfig.rst')
-rw-r--r--docs/source/commandline/sdlconfig.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/source/commandline/sdlconfig.rst b/docs/source/commandline/sdlconfig.rst
index df04865a390..3d3582fa69e 100644
--- a/docs/source/commandline/sdlconfig.rst
+++ b/docs/source/commandline/sdlconfig.rst
@@ -80,6 +80,23 @@ SDL Input Options
undesirable behaviour with other controllers. Only affects the ``sdljoy``
joystick provider. Default is OFF (**-nosixaxis**)
+.. _mame-scommandline-duallightgun:
+
+**-[no]dual_lightgun** / **-[no]dual**
+
+ Controls whether or not MAME attempts to track two lightguns that appear as
+ a single mouse. This option requires the :ref:`lightgun option
+ <mame-commandline-nolightgun>` to be on and the :ref:`lightgunprovider
+ option <mame-commandline-lightgunprovider>` to be set to *sdl*.
+
+ This option supports dual lightgun setups that work by setting the mouse
+ pointer location at the moment a lightgun trigger is activated. The primary
+ and secondary triggers on the first lightgun correspond to the first and
+ second mouse buttons, and the primary and secondary triggers on the second
+ lightgun correspond to the third and fourth mouse buttons.
+
+ The default is OFF (**-nodual_lightgun**).
+
SDL Lightgun Mapping
--------------------