mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
Former-commit-id: 3ad3a1432f67148aa1a412ca1cdfb628423f6ad7 Former-commit-id: f223a870c431f2dd906a127a4c3d6b787114bb1c
18 lines
628 B
TeX
18 lines
628 B
TeX
The Input API provides access to game's Input API to get input-related informations.
|
|
|
|
\subsection{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} |