Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > f00c83953c7eb23ee3c18f4f35d8eb6b > files > 196

sfml2-doc-2.0-0.1mdv2010.2.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>SFML - Simple and Fast Multimedia Library</title>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="tabs.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="logo">
            <img src="./logo.jpg" width="770" height="200" title="SFML home" alt="SFML logo" />
        </div>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.htm"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.htm"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
      <li><a href="files.htm"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.htm"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.htm"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.htm"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.htm"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><b>sf</b>::<a class="el" href="classsf_1_1Joystick.htm">Joystick</a>
  </div>
</div>
<div class="contents">
<h1>sf::Joystick Class Reference<br/>
<small>
[<a class="el" href="group__window.htm">Window module</a>]</small>
</h1><!-- doxytag: class="sf::Joystick" -->
<p>Give access to the real-time state of the joysticks.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Joystick_8hpp_source.htm">Joystick.hpp</a>&gt;</code></p>

<p><a href="classsf_1_1Joystick-members.htm">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a3591b9ea9914d80766a87c9f03363da6a6e0a2a95bc1da277610c04d80f52715e">Count</a> =  8, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a3591b9ea9914d80766a87c9f03363da6a2f1b8a0a59f2c12a4775c0e1e69e1816">ButtonCount</a> =  32, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a3591b9ea9914d80766a87c9f03363da6accf3e487c9f6ee2f384351323626a42c">AxisCount</a> =  8
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Constants related to joysticks capabilities. </p>
 <a href="classsf_1_1Joystick.htm#a3591b9ea9914d80766a87c9f03363da6">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7">Axis</a> { <br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7a95dc8b9bf7b0a2157fc67891c54c401e">X</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7a51ef1455f7511ad4a78ba241d66593ce">Y</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7a7c37a1240b2dafbbfc5c1a0e23911315">Z</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7aeebbcdb0828850f4d69e6a084801fab8">R</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7a0a901f61e75292dd2f642b6e4f33a214">U</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7aa2e2c8ffa1837e7911ee0c7d045bf8f4">V</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7a06420f7714e4dfd8b841885a0b5f3954">PovX</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7a0f8ffb2dcddf91b98ab910a4f8327ad9">PovY</a>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Axes supported by SFML joysticks. </p>
 <a href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Joystick.htm#ab55d963807ae0530b5065d2091d51e4f">IsConnected</a> (unsigned int joystick)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if a joystick is connected.  <a href="#ab55d963807ae0530b5065d2091d51e4f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Joystick.htm#a9eb7c6894adc3a8b8510b0032b02c602">GetButtonCount</a> (unsigned int joystick)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the number of buttons supported by a joystick.  <a href="#a9eb7c6894adc3a8b8510b0032b02c602"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Joystick.htm#a5cbd9fca32c158fec9ac0e3e3229ee40">HasAxis</a> (unsigned int joystick, <a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7">Axis</a> axis)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if a joystick supports a given axis.  <a href="#a5cbd9fca32c158fec9ac0e3e3229ee40"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Joystick.htm#a50819d04d45f1f05ea950b48cd78a801">IsButtonPressed</a> (unsigned int joystick, unsigned int button)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if a joystick button is pressed.  <a href="#a50819d04d45f1f05ea950b48cd78a801"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Joystick.htm#ae988df9a7f7d4971933e25d592d55766">GetAxisPosition</a> (unsigned int joystick, <a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7">Axis</a> axis)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the current position of a joystick axis.  <a href="#ae988df9a7f7d4971933e25d592d55766"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Joystick.htm#a5aaf05da50cfff4fc42bb3c056775355">Update</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update the states of all joysticks.  <a href="#a5aaf05da50cfff4fc42bb3c056775355"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Give access to the real-time state of the joysticks. </p>
<p><a class="el" href="classsf_1_1Joystick.htm" title="Give access to the real-time state of the joysticks.">sf::Joystick</a> provides an interface to the state of the joysticks.</p>
<p>It only contains static functions, so it's not meant to be instanciated. Instead, each joystick is identified by an index that is passed to the functions of this class.</p>
<p>This class allows users to query the state of joysticks at any time and directly, without having to deal with a window and its events. Compared to the JoystickMoved, JoystickButtonPressed and JoystickButtonReleased events, <a class="el" href="classsf_1_1Joystick.htm" title="Give access to the real-time state of the joysticks.">sf::Joystick</a> can retrieve the state of axes and buttons of joysticks at any time (you don't need to store and update a boolean on your side in order to know if a button is pressed or released), and you always get the real state of joysticks, even if they are moved, pressed or released when your window is out of focus and no event is triggered.</p>
<p>SFML supports: </p>
<ul>
<li>8 joysticks (<a class="el" href="classsf_1_1Joystick.htm#a3591b9ea9914d80766a87c9f03363da6a6e0a2a95bc1da277610c04d80f52715e" title="Maximum number of supported joysticks.">sf::Joystick::Count</a>) </li>
<li>32 buttons per joystick (<a class="el" href="classsf_1_1Joystick.htm#a3591b9ea9914d80766a87c9f03363da6a2f1b8a0a59f2c12a4775c0e1e69e1816" title="Maximum number of supported buttons.">sf::Joystick::ButtonCount</a>) </li>
<li>8 axes per joystick (<a class="el" href="classsf_1_1Joystick.htm#a3591b9ea9914d80766a87c9f03363da6accf3e487c9f6ee2f384351323626a42c" title="Maximum number of supported axes.">sf::Joystick::AxisCount</a>)</li>
</ul>
<p>Unlike the keyboard or mouse, the state of joysticks is sometimes not directly available (depending on the OS), therefore an <a class="el" href="classsf_1_1Joystick.htm#a5aaf05da50cfff4fc42bb3c056775355" title="Update the states of all joysticks.">Update()</a> function must be called in order to update the current state of joysticks. When you have a window with event handling, this is done automatically, you don't need to call anything. But if you have no window, or if you want to check joysticks state before creating one, you must call <a class="el" href="classsf_1_1Joystick.htm#a5aaf05da50cfff4fc42bb3c056775355" title="Update the states of all joysticks.">sf::Joystick::Update</a> explicitely.</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <span class="comment">// Is joystick #0 connected?</span>
 <span class="keywordtype">bool</span> connected = <a class="code" href="classsf_1_1Joystick.htm#ab55d963807ae0530b5065d2091d51e4f" title="Check if a joystick is connected.">sf::Joystick::IsConnected</a>(0);

 <span class="comment">// How many buttons does joystick #0 support?</span>
 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> buttons = <a class="code" href="classsf_1_1Joystick.htm#a9eb7c6894adc3a8b8510b0032b02c602" title="Return the number of buttons supported by a joystick.">sf::Joystick::GetButtonCount</a>(0);

 <span class="comment">// Does joystick #0 define a X axis?</span>
 <span class="keywordtype">bool</span> hasX = <a class="code" href="classsf_1_1Joystick.htm#a5cbd9fca32c158fec9ac0e3e3229ee40" title="Check if a joystick supports a given axis.">sf::Joystick::HasAxis</a>(0, <a class="code" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7a95dc8b9bf7b0a2157fc67891c54c401e" title="The X axis.">sf::Joystick::X</a>);

 <span class="comment">// Is button #2 pressed on joystick #0?</span>
 <span class="keywordtype">bool</span> pressed = <a class="code" href="classsf_1_1Joystick.htm#a50819d04d45f1f05ea950b48cd78a801" title="Check if a joystick button is pressed.">sf::Joystick::IsButtonPressed</a>(0, 2);

 <span class="comment">// What&#39;s the current position of the Y axis on joystick #0?</span>
 <span class="keywordtype">float</span> position = <a class="code" href="classsf_1_1Joystick.htm#ae988df9a7f7d4971933e25d592d55766" title="Get the current position of a joystick axis.">sf::Joystick::GetAxisPosition</a>(0, <a class="code" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7a51ef1455f7511ad4a78ba241d66593ce" title="The Y axis.">sf::Joystick::Y</a>);
</pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Keyboard.htm" title="Give access to the real-time state of the keyboard.">sf::Keyboard</a>, <a class="el" href="classsf_1_1Mouse.htm" title="Give access to the real-time state of the mouse.">sf::Mouse</a> </dd></dl>

<p>Definition at line <a class="el" href="Joystick_8hpp_source.htm#l00040">40</a> of file <a class="el" href="Joystick_8hpp_source.htm">Joystick.hpp</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a3591b9ea9914d80766a87c9f03363da6"></a><!-- doxytag: member="sf::Joystick::@5" ref="a3591b9ea9914d80766a87c9f03363da6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constants related to joysticks capabilities. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a3591b9ea9914d80766a87c9f03363da6a6e0a2a95bc1da277610c04d80f52715e"></a><!-- doxytag: member="Count" ref="a3591b9ea9914d80766a87c9f03363da6a6e0a2a95bc1da277610c04d80f52715e" args="" -->Count</em>&nbsp;</td><td>
<p>Maximum number of supported joysticks. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3591b9ea9914d80766a87c9f03363da6a2f1b8a0a59f2c12a4775c0e1e69e1816"></a><!-- doxytag: member="ButtonCount" ref="a3591b9ea9914d80766a87c9f03363da6a2f1b8a0a59f2c12a4775c0e1e69e1816" args="" -->ButtonCount</em>&nbsp;</td><td>
<p>Maximum number of supported buttons. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3591b9ea9914d80766a87c9f03363da6accf3e487c9f6ee2f384351323626a42c"></a><!-- doxytag: member="AxisCount" ref="a3591b9ea9914d80766a87c9f03363da6accf3e487c9f6ee2f384351323626a42c" args="" -->AxisCount</em>&nbsp;</td><td>
<p>Maximum number of supported axes. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="Joystick_8hpp_source.htm#l00048">48</a> of file <a class="el" href="Joystick_8hpp_source.htm">Joystick.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="a48db337092c2e263774f94de6d50baa7"></a><!-- doxytag: member="sf::Joystick::Axis" ref="a48db337092c2e263774f94de6d50baa7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7">sf::Joystick::Axis</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Axes supported by SFML joysticks. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a48db337092c2e263774f94de6d50baa7a95dc8b9bf7b0a2157fc67891c54c401e"></a><!-- doxytag: member="X" ref="a48db337092c2e263774f94de6d50baa7a95dc8b9bf7b0a2157fc67891c54c401e" args="" -->X</em>&nbsp;</td><td>
<p>The X axis. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a48db337092c2e263774f94de6d50baa7a51ef1455f7511ad4a78ba241d66593ce"></a><!-- doxytag: member="Y" ref="a48db337092c2e263774f94de6d50baa7a51ef1455f7511ad4a78ba241d66593ce" args="" -->Y</em>&nbsp;</td><td>
<p>The Y axis. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a48db337092c2e263774f94de6d50baa7a7c37a1240b2dafbbfc5c1a0e23911315"></a><!-- doxytag: member="Z" ref="a48db337092c2e263774f94de6d50baa7a7c37a1240b2dafbbfc5c1a0e23911315" args="" -->Z</em>&nbsp;</td><td>
<p>The Z axis. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a48db337092c2e263774f94de6d50baa7aeebbcdb0828850f4d69e6a084801fab8"></a><!-- doxytag: member="R" ref="a48db337092c2e263774f94de6d50baa7aeebbcdb0828850f4d69e6a084801fab8" args="" -->R</em>&nbsp;</td><td>
<p>The R axis. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a48db337092c2e263774f94de6d50baa7a0a901f61e75292dd2f642b6e4f33a214"></a><!-- doxytag: member="U" ref="a48db337092c2e263774f94de6d50baa7a0a901f61e75292dd2f642b6e4f33a214" args="" -->U</em>&nbsp;</td><td>
<p>The U axis. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a48db337092c2e263774f94de6d50baa7aa2e2c8ffa1837e7911ee0c7d045bf8f4"></a><!-- doxytag: member="V" ref="a48db337092c2e263774f94de6d50baa7aa2e2c8ffa1837e7911ee0c7d045bf8f4" args="" -->V</em>&nbsp;</td><td>
<p>The V axis. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a48db337092c2e263774f94de6d50baa7a06420f7714e4dfd8b841885a0b5f3954"></a><!-- doxytag: member="PovX" ref="a48db337092c2e263774f94de6d50baa7a06420f7714e4dfd8b841885a0b5f3954" args="" -->PovX</em>&nbsp;</td><td>
<p>The X axis of the point-of-view hat. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a48db337092c2e263774f94de6d50baa7a0f8ffb2dcddf91b98ab910a4f8327ad9"></a><!-- doxytag: member="PovY" ref="a48db337092c2e263774f94de6d50baa7a0f8ffb2dcddf91b98ab910a4f8327ad9" args="" -->PovY</em>&nbsp;</td><td>
<p>The Y axis of the point-of-view hat. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="Joystick_8hpp_source.htm#l00059">59</a> of file <a class="el" href="Joystick_8hpp_source.htm">Joystick.hpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae988df9a7f7d4971933e25d592d55766"></a><!-- doxytag: member="sf::Joystick::GetAxisPosition" ref="ae988df9a7f7d4971933e25d592d55766" args="(unsigned int joystick, Axis axis)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static float sf::Joystick::GetAxisPosition </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>joystick</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7">Axis</a>&nbsp;</td>
          <td class="paramname"> <em>axis</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the current position of a joystick axis. </p>
<p>If the joystick is not connected, this function returns 0.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>joystick</em>&nbsp;</td><td>Index of the joystick </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>axis</em>&nbsp;</td><td>Axis to check</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current position of the axis, in range [-100 .. 100] </dd></dl>

</div>
</div>
<a class="anchor" id="a9eb7c6894adc3a8b8510b0032b02c602"></a><!-- doxytag: member="sf::Joystick::GetButtonCount" ref="a9eb7c6894adc3a8b8510b0032b02c602" args="(unsigned int joystick)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static unsigned int sf::Joystick::GetButtonCount </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>joystick</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the number of buttons supported by a joystick. </p>
<p>If the joystick is not connected, this function returns 0.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>joystick</em>&nbsp;</td><td>Index of the joystick</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of buttons supported by the joystick </dd></dl>

</div>
</div>
<a class="anchor" id="a5cbd9fca32c158fec9ac0e3e3229ee40"></a><!-- doxytag: member="sf::Joystick::HasAxis" ref="a5cbd9fca32c158fec9ac0e3e3229ee40" args="(unsigned int joystick, Axis axis)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool sf::Joystick::HasAxis </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>joystick</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classsf_1_1Joystick.htm#a48db337092c2e263774f94de6d50baa7">Axis</a>&nbsp;</td>
          <td class="paramname"> <em>axis</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check if a joystick supports a given axis. </p>
<p>If the joystick is not connected, this function returns false.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>joystick</em>&nbsp;</td><td>Index of the joystick </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>axis</em>&nbsp;</td><td>Axis to check</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the joystick supports the axis, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a50819d04d45f1f05ea950b48cd78a801"></a><!-- doxytag: member="sf::Joystick::IsButtonPressed" ref="a50819d04d45f1f05ea950b48cd78a801" args="(unsigned int joystick, unsigned int button)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool sf::Joystick::IsButtonPressed </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>joystick</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>button</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check if a joystick button is pressed. </p>
<p>If the joystick is not connected, this function returns false.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>joystick</em>&nbsp;</td><td>Index of the joystick </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>button</em>&nbsp;</td><td>Button to check</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the button is pressed, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="ab55d963807ae0530b5065d2091d51e4f"></a><!-- doxytag: member="sf::Joystick::IsConnected" ref="ab55d963807ae0530b5065d2091d51e4f" args="(unsigned int joystick)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool sf::Joystick::IsConnected </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>joystick</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check if a joystick is connected. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>joystick</em>&nbsp;</td><td>Index of the joystick to check</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the joystick is connected, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a5aaf05da50cfff4fc42bb3c056775355"></a><!-- doxytag: member="sf::Joystick::Update" ref="a5aaf05da50cfff4fc42bb3c056775355" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void sf::Joystick::Update </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Update the states of all joysticks. </p>
<p>This function is used internally by SFML, so you normally don't have to call it explicitely. However, you may need to call it if you have no window yet (or no window at all): in this case the joysticks states are not updated automatically. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="Joystick_8hpp_source.htm">Joystick.hpp</a></li>
</ul>
</div>

        <p id="footer">
            &nbsp;::&nbsp; Copyright &copy; 2007-2008 Laurent Gomila, all rights reserved &nbsp;::&nbsp;
            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.5.2</a> &nbsp;::&nbsp;
        </p>

    </body>
</html>