\hypertarget{joystick___p_c_8h}{
\section{D:/Basile/Visual\-Cpp\-Projects/hydro\-MEX3/hydro\-MEX3/joystick/joystick\_\-PC.h File Reference}
\label{joystick___p_c_8h}\index{D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/joystick/joystick_PC.h@{D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/joystick/joystick\_\-PC.h}}
}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=418pt]{joystick___p_c_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{joystick___p_c_8h_961bcf0a0912e1ae0e51a5e89846ad1f}{joystick\_\-init} ()
\begin{CompactList}\small\item\em Initializes joystick stuff. \item\end{CompactList}\item 
void \hyperlink{joystick___p_c_8h_2a7bdfbb925135f3547113abd0e62b19}{joystick\_\-get\-XYZR} (float $\ast$X, float $\ast$Y, float $\ast$Z, float $\ast$R, bool \hyperlink{graphics__main_8cpp_5a3c2aa9a76204fb5a88ad3feaa9a0f4}{do\-X}, bool \hyperlink{graphics__main_8cpp_400d40cdb5ad93ffc84da0cc86cb351c}{do\-Y}, bool \hyperlink{graphics__main_8cpp_8ffdb1e1aa5b4f8c1f41601c9c69529a}{do\-Z}, bool \hyperlink{graphics__main_8cpp_9b61dde9e1f583fd397cc8d18889eb20}{do\-R})
\begin{CompactList}\small\item\em Get joystick position under MS Windows. \item\end{CompactList}\item 
void \hyperlink{joystick___p_c_8h_1323767921554cd72f51eea5bb165654}{joystick\_\-close} ()
\begin{CompactList}\small\item\em Close joystick under MS Windoze. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[Author:]\href{mailto:basile.graf@epfl.ch}{\tt basile.graf@epfl.ch}\end{Desc}
This file contains functions related to the joystick under MS Windoze 

Definition in file \hyperlink{joystick___p_c_8h-source}{joystick\_\-PC.h}.

\subsection{Function Documentation}
\hypertarget{joystick___p_c_8h_1323767921554cd72f51eea5bb165654}{
\index{joystick_PC.h@{joystick\_\-PC.h}!joystick_close@{joystick\_\-close}}
\index{joystick_close@{joystick\_\-close}!joystick_PC.h@{joystick\_\-PC.h}}
\subsubsection[joystick\_\-close]{\setlength{\rightskip}{0pt plus 5cm}void joystick\_\-close ()}}
\label{joystick___p_c_8h_1323767921554cd72f51eea5bb165654}


Close joystick under MS Windoze. 

No need to close anything under Windows =$>$ this function does nothing... 

Definition at line 89 of file joystick\_\-PC.cpp.

Referenced by draw\_\-graphics\_\-kill().\hypertarget{joystick___p_c_8h_2a7bdfbb925135f3547113abd0e62b19}{
\index{joystick_PC.h@{joystick\_\-PC.h}!joystick_getXYZR@{joystick\_\-getXYZR}}
\index{joystick_getXYZR@{joystick\_\-getXYZR}!joystick_PC.h@{joystick\_\-PC.h}}
\subsubsection[joystick\_\-getXYZR]{\setlength{\rightskip}{0pt plus 5cm}void joystick\_\-get\-XYZR (float $\ast$ {\em X}, float $\ast$ {\em Y}, float $\ast$ {\em Z}, float $\ast$ {\em R}, bool {\em do\-X}, bool {\em do\-Y}, bool {\em do\-Z}, bool {\em do\-R})}}
\label{joystick___p_c_8h_2a7bdfbb925135f3547113abd0e62b19}


Get joystick position under MS Windows. 

Get the joystick positions for the axes specified. Values should be between -1.0 and 1.0 \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em $\ast$X}]pointer to the X axis variable \item[{\em $\ast$Y}]pointer to the Y axis variable \item[{\em $\ast$Z}]pointer to the Z axis variable \item[{\em $\ast$R}]pointer to the R axis variable \item[{\em do\-X}]modify X value only if true \item[{\em do\-Y}]modify Y value only if true \item[{\em do\-Z}]modify Z value only if true \item[{\em do\-R}]modify R value only if true \end{description}
\end{Desc}


Definition at line 68 of file joystick\_\-PC.cpp.

References Actual\-Pos, and f().

Referenced by Draw\-GLScene().\hypertarget{joystick___p_c_8h_961bcf0a0912e1ae0e51a5e89846ad1f}{
\index{joystick_PC.h@{joystick\_\-PC.h}!joystick_init@{joystick\_\-init}}
\index{joystick_init@{joystick\_\-init}!joystick_PC.h@{joystick\_\-PC.h}}
\subsubsection[joystick\_\-init]{\setlength{\rightskip}{0pt plus 5cm}int joystick\_\-init ()}}
\label{joystick___p_c_8h_961bcf0a0912e1ae0e51a5e89846ad1f}


Initializes joystick stuff. 

Use Windows API to initialize joystick (if any connected) 

Definition at line 36 of file joystick\_\-PC.cpp.

References Actual\-Pos, dw\-Boutons, Infos\-Caps, and u\-Pool\-Period.

Referenced by draw\_\-graphics\_\-init().