mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
Former-commit-id: a3ad38695e8c1e1040a6a3f4b8470217e8a98489 Former-commit-id: cd3809edcae7b26e7b3d846dab17f1f63761f30f
18 lines
625 B
TeX
18 lines
625 B
TeX
The Input API provides access to game's Input API to get input-related informations.
|
|
|
|
\section{Functions}
|
|
|
|
\begin{tabularx}{\textwidth}{l l X}
|
|
\textbf{\large Function} & \textbf{\large Return} & \textbf{\large Description}
|
|
\\ \\
|
|
\endhead
|
|
input.isKeyDown(keycode: int) & bool & Checks whether the key is down. By combining with `and' or `or' statement, you can inquire for multiple keys being down simultaneously.
|
|
\\ \\
|
|
input.readLine() & string & Reads a line of string and returns it.
|
|
\end{tabularx}
|
|
|
|
You can use \emph{Keys} Library with this API. Examples:
|
|
|
|
\begin{itemize}
|
|
\item input.isKeyDown(keys.q)
|
|
\end{itemize} |