diff --git a/Doc/mufasa_handbook.tex b/Doc/mufasa_handbook.tex index 7321907..8470dfe 100644 --- a/Doc/mufasa_handbook.tex +++ b/Doc/mufasa_handbook.tex @@ -3,7 +3,7 @@ \usepackage{color} \begin{document} -\title{OS4} +\title{Mufasa Handbook} \author{Merlijn Wajer \and Raymond van Veneti\"{e}} \definecolor{typeGreen}{rgb}{0.0, 0.6, 0.0} @@ -22,22 +22,56 @@ HOI DIT IS DE MUFASA FUNCTIE LIJST! \subsection{Types} -TClickType en TMousePress hier +A few variables are exported for working with Mufasa Mouse Functions. -$mouse\_Right$, $mouse\_Left$, $mouse\_Middle$ +TClickType, which, as the name suggests, defines the click type. +\begin{itemize} + \item $mouse\_Right = 0$ + \item $mouse\_Left = 1$ + \item $mouse_Middle = 2$ +\end{itemize} + +TMousePress, which defines if the mouse button is to be down or up. +\begin{itemize} + \item $mouse\_Up$ + \item $mouse\_Down$ +\end{itemize} % TClickType = (mouse_Left, mouse_Right, mouse_Middle); % TMousePress = (mouse_Down, mouse_Up); -\subsection{MoveMouse} +\subsection{\textbf{procedure} {\color{blue}{MoveMouse}}({\color{typeRed} +{in x, y: }}{\color{typeGreen}{Integer}})} -\subsection{\textbf{procedure} {\color{blue}{GetMousePos}}({\color{typeRed}{var x, y: }}{\color{typeGreen}{Integer}})} +MoveMouse moves the mouse pointer to the specified x and y coordinates. -\subsection{HoldMouse} +\subsection{\textbf{procedure} {\color{blue}{GetMousePos}}({\color{typeRed} +{out x, y: }}{\color{typeGreen}{Integer}})} -\subsection{ReleaseMouse} +GetMousePos returns the current position of the mouse in X and Y. -\subsection{ClickMouse} +\subsection{\textbf{procedure} {\color{blue}{HoldMouse}}({\color{typeRed} +{x, y: }}{\color{typeGreen}{Integer}}; {\color{typeRed}{clickType :}} +{\color{typeGreen}{clickType}})} + +HoldMouse holds the given mouse button (clickType) down at the specified x,y +coordinate. If the mouse if not at the given x, y yet, the mouse position +will be set to x, y. + +\subsection{\textbf{procedure} {\color{blue}{ReleaseMouse}}({\color{typeRed} +{x, y: }}{\color{typeGreen}{Integer}}; {\color{typeRed}{clickType :}} +{\color{typeGreen}{clickType}})} + +ReleaseMouse releases the given mouse button (clickType) down at the specified x,y +coordinate. If the mouse if not at the given x, y yet, the mouse position +will be set to x, y. + +\subsection{\textbf{procedure} {\color{blue}{ClickMouse}}({\color{typeRed} +{x, y: }}{\color{typeGreen}{Integer}}; {\color{typeRed}{clickType :}} +{\color{typeGreen}{clickType}})} + +ClickMouse performs a click with the given mouse button (clickType) at the +specified x, y coordinate. \section{Keyboard}