summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGravatarGravatar hap <happppp@users.noreply.github.com>2019-03-25 13:04:15 +0100
committerGravatarGravatar hap <happppp@users.noreply.github.com>2019-03-25 13:04:27 +0100
commit2b53b22bb58cb53215c041013947265108c5e200 (patch) (github)
tree5e24efea38566077f7ac3ada0dbe623cd1a428b4 /docs
parentfa741aa060c654014fb420d018ed4be070f5d3c9 (diff)
downloadmame-2b53b22bb58cb53215c041013947265108c5e200.tar.bz2
mame-2b53b22bb58cb53215c041013947265108c5e200.zip
layout doc: reword (nw)
Diffstat (limited to 'docs')
-rw-r--r--docs/source/techspecs/layout_files.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/source/techspecs/layout_files.rst b/docs/source/techspecs/layout_files.rst
index cc85a923caa..10467a8d0e9 100644
--- a/docs/source/techspecs/layout_files.rst
+++ b/docs/source/techspecs/layout_files.rst
@@ -32,7 +32,7 @@ There are two kinds of numbers in MAME layouts: integers and floating-point
numbers.
Integers may be supplied in decimal or hexadecimal notation. A decimal integer
-consists of and optional # (hash) prefix, an optional +/- (plus or minus) sign
+consists of an optional # (hash) prefix, an optional +/- (plus or minus) sign
character, and a sequence of digits 0-9. A hexadecimal number consists of one
of the prefixes $ (dollar sign) or 0x (zero ex) followed by a sequence of
hexadecimal digits 0-9 and A-F. Hexadecimal numbers are case-insensitive for
@@ -773,10 +773,9 @@ with the I/O port default field value. The latter is useful for inputs that are
active-low. If the result is non-zero, the state is 1, otherwise it's 0. This
is often used to allow clickable buttons and toggle switches to provide visible
feedback. By using ``inputraw="1"``, it's possible to obtain the raw data from
-the I/O port, masked with the ``inputmask`` and shifted to the right so that the
-least significant one bit of the mask aligns with the least significant bit of
-the value (for example a mask of 0x05 will result in no shift, while a mask of
-0xb0 will result in the value being shifted four bits to the right).
+the I/O port, masked with the ``inputmask`` value and shifted to the right to
+remove trailing zeroes (for example a mask of 0x05 will result in no shift, while
+a mask of 0xb0 will result in the value being shifted four bits to the right).
When handling mouse input, MAME treats all layout elements as being rectangular,
and only activates the frontmost element whose area includes the location of the