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