mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
manual: document touch area labels for %T and %Tl tags
It's been possible to label touch areas since the v3.9 stable release, but it was never documented in the manual, only the wiki. Change-Id: I6b92ff1d19369c105dc3a90aa04f8763f18a4214
This commit is contained in:
parent
afe128f4cc
commit
b781beecf5
1 changed files with 18 additions and 9 deletions
|
|
@ -636,9 +636,11 @@ display cycling round the defined sublines. See
|
||||||
\opt{touchscreen}{
|
\opt{touchscreen}{
|
||||||
\section{Touchscreen Areas}
|
\section{Touchscreen Areas}
|
||||||
\begin{tagmap}
|
\begin{tagmap}
|
||||||
\config{\%T(x,y,width,\tabnlindent{}height, action, [options])}
|
\config{\%T([label], x, y, width, height, action, [options])}
|
||||||
& Invoke the action specified when the user presses in the defined
|
& Invoke the action specified when the user presses in the defined
|
||||||
touchscreen area.\\
|
touchscreen area. If a label is given it can be used with \%Tl to detect
|
||||||
|
if this touch area is pressed (see below). The label must consist of
|
||||||
|
alphabetic characters (A-Z) or underscores and is case-sensitive.\\
|
||||||
\end{tagmap}
|
\end{tagmap}
|
||||||
|
|
||||||
Possible actions are:
|
Possible actions are:
|
||||||
|
|
@ -692,15 +694,22 @@ display cycling round the defined sublines. See
|
||||||
|
|
||||||
\section{Last Touchscreen Press}
|
\section{Last Touchscreen Press}
|
||||||
\begin{tagmap}
|
\begin{tagmap}
|
||||||
\config{\%Tl} & Indicates that the touchscreen is pressed.\\
|
\config{\%Tl([delay])} & Indicates that the touchscreen is pressed.\\
|
||||||
|
\config{\%Tl(label,[delay])} & Indicates that the specified touch area is pressed.\\
|
||||||
\end{tagmap}
|
\end{tagmap}
|
||||||
This tag can be used to display text or images or a viewport when the
|
This tag can be used to display text or images or a viewport when the
|
||||||
touchscreen is pressed (like an On Screen Display). If you put a number
|
touchscreen is pressed (like an On Screen Display). The optional label
|
||||||
straight after \%Tl it will be used as a timeout in seconds
|
links the tag to trigger only when a specific touch area is pressed.
|
||||||
(e.g \%Tl(2.5) will give a 2.5 second timeout) between the touchscreen press
|
For example \%Tl(play\_button) will only trigger when the area labelled
|
||||||
being released and the tag going false. If no number is specified it will
|
play\_button is pressed. If the label is omitted, the tag will trigger
|
||||||
use a 1 second timeout. It can also be used as a conditional, and can be
|
on any touchscreen press.
|
||||||
used with conditional viewports.
|
|
||||||
|
The delay is a number which sets the timeout for the tag going false
|
||||||
|
after the touchscreen is released, eg. \%Tl(2.5) will give a 2.5 second
|
||||||
|
timeout. If no delay is specified the default timeout is 1 second.
|
||||||
|
|
||||||
|
The \%Tl tag can be used as a conditional, and can be used with
|
||||||
|
conditional viewports.
|
||||||
}
|
}
|
||||||
|
|
||||||
\section{\label{ref:bar_tags}Bar Tags}
|
\section{\label{ref:bar_tags}Bar Tags}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue