mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 05:41:51 +09:00
Lua Computer: collection of minor updates, none notable (read romapidoc)
Former-commit-id: 80e3f0d13c2dc5bcff0843e509f416e9314cd52e Former-commit-id: e7e35bfd23d70db84f568f0c5388f3a1d89222bc
This commit is contained in:
18
work_files/romapidoc/api_input.tex
Normal file
18
work_files/romapidoc/api_input.tex
Normal file
@@ -0,0 +1,18 @@
|
||||
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}
|
||||
Reference in New Issue
Block a user