summaryrefslogtreecommitdiff
path: root/doc/html/classsf_1_1Input.htm
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/classsf_1_1Input.htm')
-rwxr-xr-xdoc/html/classsf_1_1Input.htm226
1 files changed, 125 insertions, 101 deletions
diff --git a/doc/html/classsf_1_1Input.htm b/doc/html/classsf_1_1Input.htm
index ea9eaa0..5a10e40 100755
--- a/doc/html/classsf_1_1Input.htm
+++ b/doc/html/classsf_1_1Input.htm
@@ -10,36 +10,45 @@
<div id="logo">
<img src="./logo.jpg" width="770" height="200" title="SFML home" alt="SFML logo" />
</div>
-<!-- Generated by Doxygen 1.5.2 -->
-<div class="tabs">
- <ul>
- <li><a href="index.htm"><span>Main&nbsp;Page</span></a></li>
- <li><a href="namespaces.htm"><span>Namespaces</span></a></li>
- <li class="current"><a href="classes.htm"><span>Classes</span></a></li>
- <li><a href="files.htm"><span>Files</span></a></li>
- </ul>
+<!-- Generated by Doxygen 1.5.8 -->
+<div class="navigation" id="top">
+ <div class="tabs">
+ <ul>
+ <li><a href="index.htm"><span>Main&nbsp;Page</span></a></li>
+ <li><a href="namespaces.htm"><span>Namespaces</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_1Input.htm">Input</a>
+ </div>
</div>
-<div class="tabs">
- <ul>
- <li><a href="classes.htm"><span>Alphabetical&nbsp;List</span></a></li>
- <li><a href="annotated.htm"><span>Class&nbsp;List</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="nav">
-<a class="el" href="namespacesf.htm">sf</a>::<a class="el" href="classsf_1_1Input.htm">Input</a></div>
+<div class="contents">
<h1>sf::Input Class Reference</h1><!-- doxytag: class="sf::Input" --><!-- doxytag: inherits="sf::WindowListener,sf::NonCopyable" --><a class="el" href="classsf_1_1Input.htm" title="Input handles real-time input from keyboard and mouse.">Input</a> handles real-time input from keyboard and mouse.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="Input_8hpp-source.htm">Input.hpp</a>&gt;</code>
<p>
-<p>Inheritance diagram for sf::Input:
+<div class="dynheader">
+Inheritance diagram for sf::Input:</div>
+<div class="dynsection">
+
<p><center><img src="classsf_1_1Input.png" usemap="#sf::Input_map" border="0" alt=""></center>
<map name="sf::Input_map">
<area href="classsf_1_1WindowListener.htm" alt="sf::WindowListener" shape="rect" coords="0,0,117,24">
<area href="structsf_1_1NonCopyable.htm" alt="sf::NonCopyable" shape="rect" coords="127,0,244,24">
</map>
+</div>
+
+<p>
<a href="classsf_1_1Input-members.htm">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
@@ -49,30 +58,28 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#5312ed524e1f2837aa4597978553876a">IsKeyDown</a> (<a class="el" href="namespacesf_1_1Key.htm#d32ed01d3448273340bd25af5cdd9c81">Key::Code</a> KeyCode) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the state of a key. <a href="#5312ed524e1f2837aa4597978553876a"></a><br></td></tr>
-<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#28c36d05d76f2263faf803e29ffa9dea">IsMouseButtonDown</a> (<a class="el" href="namespacesf_1_1Mouse.htm#4fb128be433f9aafe66bc0c605daaa90">Mouse::Button</a> Button) const </td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#28c36d05d76f2263faf803e29ffa9dea">IsMouseButtonDown</a> (Mouse::Button Button) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the state of a mouse button. <a href="#28c36d05d76f2263faf803e29ffa9dea"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#715d9533617ef9fc25152ebd6b7ece08">IsJoystickButtonDown</a> (unsigned int JoyId, unsigned int Button) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the state of a joystick button. <a href="#715d9533617ef9fc25152ebd6b7ece08"></a><br></td></tr>
-<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#a4ea677eae189acdee25c49c669413f9">GetMouseX</a> () const</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#2100db642800d4d3e21579c72bed99b3">GetMouseX</a> () const </td></tr>
-<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the mouse X position. <a href="#a4ea677eae189acdee25c49c669413f9"></a><br></td></tr>
-<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#dd2bf62b8fd7db419e1ac9f9554fa407">GetMouseY</a> () const</td></tr>
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the mouse X position. <a href="#2100db642800d4d3e21579c72bed99b3"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#fe8a8e65be0a5840de9865054aaa5796">GetMouseY</a> () const </td></tr>
-<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the mouse Y position. <a href="#dd2bf62b8fd7db419e1ac9f9554fa407"></a><br></td></tr>
-<tr><td class="memItemLeft" nowrap align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#7b0af3ad1f8d4e9203b45b6e56293669">GetJoystickAxis</a> (unsigned int JoyId, <a class="el" href="namespacesf_1_1Joy.htm#e7ae4bc4af23f012e5667f18d4aa1039">Joy::Axis</a> Axis) const</td></tr>
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the mouse Y position. <a href="#fe8a8e65be0a5840de9865054aaa5796"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Input.htm#4edf71238ae3d311c4b6e5e6895c6896">GetJoystickAxis</a> (unsigned int JoyId, Joy::Axis Axis) const </td></tr>
-<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a joystick axis position. <a href="#7b0af3ad1f8d4e9203b45b6e56293669"></a><br></td></tr>
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a joystick axis position. <a href="#4edf71238ae3d311c4b6e5e6895c6896"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="classsf_1_1Input.htm" title="Input handles real-time input from keyboard and mouse.">Input</a> handles real-time input from keyboard and mouse.
<p>
Use it instead of events to handle continuous moves and more game-friendly inputs
-<p>
-
-<p>
-Definition at line <a class="el" href="Input_8hpp-source.htm#l00044">44</a> of file <a class="el" href="Input_8hpp-source.htm">Input.hpp</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<p>Definition at line <a class="el" href="Input_8hpp-source.htm#l00044">44</a> of file <a class="el" href="Input_8hpp-source.htm">Input.hpp</a>.</p>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="35393e09fc92f7523e52af1c203b958f"></a><!-- doxytag: member="sf::Input::Input" ref="35393e09fc92f7523e52af1c203b958f" args="()" -->
<div class="memitem">
<div class="memproto">
@@ -82,7 +89,7 @@ Definition at line <a class="el" href="Input_8hpp-source.htm#l00044">44</a> of f
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
- <td width="100%"></td>
+ <td></td>
</tr>
</table>
</div>
@@ -92,62 +99,98 @@ Definition at line <a class="el" href="Input_8hpp-source.htm#l00044">44</a> of f
Default constructor.
<p>
+<p>Definition at line <a class="el" href="Input_8cpp-source.htm#l00036">36</a> of file <a class="el" href="Input_8cpp-source.htm">Input.cpp</a>.</p>
+
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
-<a class="anchor" name="5312ed524e1f2837aa4597978553876a"></a><!-- doxytag: member="sf::Input::IsKeyDown" ref="5312ed524e1f2837aa4597978553876a" args="(Key::Code KeyCode) const " -->
+<a class="anchor" name="4edf71238ae3d311c4b6e5e6895c6896"></a><!-- doxytag: member="sf::Input::GetJoystickAxis" ref="4edf71238ae3d311c4b6e5e6895c6896" args="(unsigned int JoyId, Joy::Axis Axis) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
- <td class="memname">bool sf::Input::IsKeyDown </td>
+ <td class="memname">float sf::Input::GetJoystickAxis </td>
<td>(</td>
- <td class="paramtype"><a class="el" href="namespacesf_1_1Key.htm#d32ed01d3448273340bd25af5cdd9c81">Key::Code</a>&nbsp;</td>
- <td class="paramname"> <em>KeyCode</em> </td>
- <td>&nbsp;)&nbsp;</td>
- <td width="100%"> const</td>
+ <td class="paramtype">unsigned int&nbsp;</td>
+ <td class="paramname"> <em>JoyId</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">Joy::Axis&nbsp;</td>
+ <td class="paramname"> <em>Axis</em></td><td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td><td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
-Get the state of a key.
+Get a joystick axis position.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>KeyCode</em>&nbsp;</td><td>: <a class="el" href="namespacesf_1_1Key.htm" title="Definition of key codes for keyboard events.">Key</a> to check</td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>JoyId</em>&nbsp;</td><td>: Identifier of the joystick to check (0 or 1) </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>Axis</em>&nbsp;</td><td>: Axis to get</td></tr>
</table>
</dl>
-<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if key is down, false if key is up </dd></dl>
+<dl class="return" compact><dt><b>Returns:</b></dt><dd>Current axis position, in the range [-100, 100] (except for POV, which is [0, 360]) </dd></dl>
+
+<p>Definition at line <a class="el" href="Input_8cpp-source.htm#l00111">111</a> of file <a class="el" href="Input_8cpp-source.htm">Input.cpp</a>.</p>
</div>
</div><p>
-<a class="anchor" name="28c36d05d76f2263faf803e29ffa9dea"></a><!-- doxytag: member="sf::Input::IsMouseButtonDown" ref="28c36d05d76f2263faf803e29ffa9dea" args="(Mouse::Button Button) const " -->
+<a class="anchor" name="2100db642800d4d3e21579c72bed99b3"></a><!-- doxytag: member="sf::Input::GetMouseX" ref="2100db642800d4d3e21579c72bed99b3" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
- <td class="memname">bool sf::Input::IsMouseButtonDown </td>
+ <td class="memname">int sf::Input::GetMouseX </td>
<td>(</td>
- <td class="paramtype"><a class="el" href="namespacesf_1_1Mouse.htm#4fb128be433f9aafe66bc0c605daaa90">Mouse::Button</a>&nbsp;</td>
- <td class="paramname"> <em>Button</em> </td>
+ <td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
- <td width="100%"> const</td>
+ <td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
-Get the state of a mouse button.
+Get the mouse X position.
<p>
-<dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>Button</em>&nbsp;</td><td>: Button to check</td></tr>
- </table>
-</dl>
-<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if button is down, false if button is up </dd></dl>
+Get the mouse left position.<p>
+<dl class="return" compact><dt><b>Returns:</b></dt><dd>Current mouse left position, relative to owner window </dd></dl>
+
+<p>Definition at line <a class="el" href="Input_8cpp-source.htm#l00093">93</a> of file <a class="el" href="Input_8cpp-source.htm">Input.cpp</a>.</p>
+
+</div>
+</div><p>
+<a class="anchor" name="fe8a8e65be0a5840de9865054aaa5796"></a><!-- doxytag: member="sf::Input::GetMouseY" ref="fe8a8e65be0a5840de9865054aaa5796" args="() const " -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int sf::Input::GetMouseY </td>
+ <td>(</td>
+ <td class="paramname"> </td>
+ <td>&nbsp;)&nbsp;</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>
+Get the mouse Y position.
+<p>
+Get the mouse top position.<p>
+<dl class="return" compact><dt><b>Returns:</b></dt><dd>Current mouse top position, relative to owner window </dd></dl>
+
+<p>Definition at line <a class="el" href="Input_8cpp-source.htm#l00102">102</a> of file <a class="el" href="Input_8cpp-source.htm">Input.cpp</a>.</p>
</div>
</div><p>
@@ -170,7 +213,7 @@ Get the state of a mouse button.
<tr>
<td></td>
<td>)</td>
- <td></td><td></td><td width="100%"> const</td>
+ <td></td><td></td><td> const</td>
</tr>
</table>
</div>
@@ -187,92 +230,73 @@ Get the state of a joystick button.
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if button is down, false if button is up </dd></dl>
-</div>
-</div><p>
-<a class="anchor" name="a4ea677eae189acdee25c49c669413f9"></a><!-- doxytag: member="sf::Input::GetMouseX" ref="a4ea677eae189acdee25c49c669413f9" args="() const" -->
-<div class="memitem">
-<div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int sf::Input::GetMouseX </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td>&nbsp;)&nbsp;</td>
- <td width="100%"> const</td>
- </tr>
- </table>
-</div>
-<div class="memdoc">
-
-<p>
-Get the mouse X position.
-<p>
-<dl class="return" compact><dt><b>Returns:</b></dt><dd>Current mouse left position, relative to owner window </dd></dl>
+<p>Definition at line <a class="el" href="Input_8cpp-source.htm#l00081">81</a> of file <a class="el" href="Input_8cpp-source.htm">Input.cpp</a>.</p>
</div>
</div><p>
-<a class="anchor" name="dd2bf62b8fd7db419e1ac9f9554fa407"></a><!-- doxytag: member="sf::Input::GetMouseY" ref="dd2bf62b8fd7db419e1ac9f9554fa407" args="() const" -->
+<a class="anchor" name="5312ed524e1f2837aa4597978553876a"></a><!-- doxytag: member="sf::Input::IsKeyDown" ref="5312ed524e1f2837aa4597978553876a" args="(Key::Code KeyCode) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
- <td class="memname">int sf::Input::GetMouseY </td>
+ <td class="memname">bool sf::Input::IsKeyDown </td>
<td>(</td>
- <td class="paramname"> </td>
+ <td class="paramtype"><a class="el" href="namespacesf_1_1Key.htm#d32ed01d3448273340bd25af5cdd9c81">Key::Code</a>&nbsp;</td>
+ <td class="paramname"> <em>KeyCode</em> </td>
<td>&nbsp;)&nbsp;</td>
- <td width="100%"> const</td>
+ <td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
-Get the mouse Y position.
+Get the state of a key.
<p>
-<dl class="return" compact><dt><b>Returns:</b></dt><dd>Current mouse top position, relative to owner window </dd></dl>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>KeyCode</em>&nbsp;</td><td>: <a class="el" href="namespacesf_1_1Key.htm" title="Definition of key codes for keyboard events.">Key</a> to check</td></tr>
+ </table>
+</dl>
+<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if key is down, false if key is up </dd></dl>
+
+<p>Definition at line <a class="el" href="Input_8cpp-source.htm#l00063">63</a> of file <a class="el" href="Input_8cpp-source.htm">Input.cpp</a>.</p>
</div>
</div><p>
-<a class="anchor" name="7b0af3ad1f8d4e9203b45b6e56293669"></a><!-- doxytag: member="sf::Input::GetJoystickAxis" ref="7b0af3ad1f8d4e9203b45b6e56293669" args="(unsigned int JoyId, Joy::Axis Axis) const" -->
+<a class="anchor" name="28c36d05d76f2263faf803e29ffa9dea"></a><!-- doxytag: member="sf::Input::IsMouseButtonDown" ref="28c36d05d76f2263faf803e29ffa9dea" args="(Mouse::Button Button) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
- <td class="memname">float sf::Input::GetJoystickAxis </td>
+ <td class="memname">bool sf::Input::IsMouseButtonDown </td>
<td>(</td>
- <td class="paramtype">unsigned int&nbsp;</td>
- <td class="paramname"> <em>JoyId</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="namespacesf_1_1Joy.htm#e7ae4bc4af23f012e5667f18d4aa1039">Joy::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 width="100%"> const</td>
+ <td class="paramtype">Mouse::Button&nbsp;</td>
+ <td class="paramname"> <em>Button</em> </td>
+ <td>&nbsp;)&nbsp;</td>
+ <td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
-Get a joystick axis position.
+Get the state of a mouse button.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>JoyId</em>&nbsp;</td><td>: Identifier of the joystick to check (0 or 1) </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>Axis</em>&nbsp;</td><td>: Axis to get</td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>Button</em>&nbsp;</td><td>: Button to check</td></tr>
</table>
</dl>
-<dl class="return" compact><dt><b>Returns:</b></dt><dd>Current axis position, in the range [-100, 100] (except for POV, which is [0, 360]) </dd></dl>
+<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if button is down, false if button is up </dd></dl>
+
+<p>Definition at line <a class="el" href="Input_8cpp-source.htm#l00072">72</a> of file <a class="el" href="Input_8cpp-source.htm">Input.cpp</a>.</p>
</div>
</div><p>
-<hr>The documentation for this class was generated from the following file:<ul>
-<li><a class="el" href="Input_8hpp-source.htm">Input.hpp</a></ul>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="Input_8hpp-source.htm">Input.hpp</a><li><a class="el" href="Input_8cpp-source.htm">Input.cpp</a></ul>
+</div>
<p id="footer">
&nbsp;::&nbsp; Copyright &copy; 2007-2008 Laurent Gomila, all rights reserved &nbsp;::&nbsp;