<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Guichan: gcn::GLUTInput Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.7 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li id="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div> <div class="nav"> <a class="el" href="namespacegcn.html">gcn</a>::<a class="el" href="classgcn_1_1GLUTInput.html">GLUTInput</a></div> <h1>gcn::GLUTInput Class Reference</h1><!-- doxytag: class="gcn::GLUTInput" --><!-- doxytag: inherits="gcn::Input" --><code>#include <<a class="el" href="glutinput_8hpp-source.html">glutinput.hpp</a>></code> <p> <p>Inheritance diagram for gcn::GLUTInput: <p><center><img src="classgcn_1_1GLUTInput.png" usemap="#gcn::GLUTInput_map" border="0" alt=""></center> <map name="gcn::GLUTInput_map"> <area href="classgcn_1_1Input.html" alt="gcn::Input" shape="rect" coords="0,0,97,24"> </map> <a href="classgcn_1_1GLUTInput-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> GLUT implementation of <a class="el" href="classgcn_1_1Input.html">Input</a>. <p> <p> Definition at line <a class="el" href="glutinput_8hpp-source.html#l00075">75</a> of file <a class="el" href="glutinput_8hpp-source.html">glutinput.hpp</a>.<table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c9670357d71dc5501f8f8d366cf4216f"></a><!-- doxytag: member="gcn::GLUTInput::GLUTInput" ref="c9670357d71dc5501f8f8d366cf4216f" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#c9670357d71dc5501f8f8d366cf4216f">GLUTInput</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#3e80e075e1fb9cf200b1d7a3f2a647d1">pushKeyDownInput</a> (unsigned char key)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pushes a key down. <a href="#3e80e075e1fb9cf200b1d7a3f2a647d1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#538e9c6a6eabd7066e091198ba6c15cb">pushKeyUpInput</a> (unsigned char key)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pushes a key up. <a href="#538e9c6a6eabd7066e091198ba6c15cb"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#3e0e98618769b73200a7f4cfeda4004d">pushSpecialDownInput</a> (unsigned char key)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pushes a special key down. <a href="#3e0e98618769b73200a7f4cfeda4004d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#6c3799f09dba23d7d56f9a124a758604">pushSpecialUpInput</a> (unsigned char key)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pushes a special key up. <a href="#6c3799f09dba23d7d56f9a124a758604"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#0756970ee4d37b6328b0a24d947fb951">pushMouseInput</a> (int button, int state, int x, int y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pushes a mouse input. <a href="#0756970ee4d37b6328b0a24d947fb951"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#662ccabea1d852f3d2640c0680f81831">pushMotionInput</a> (int x, int y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pushes a mouse motion input. <a href="#662ccabea1d852f3d2640c0680f81831"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#6cc52127d39cde2b2c430b6cf8be55ff">pushPassiveMotionInput</a> (int x, int y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pushes a passive mouse motion input. <a href="#6cc52127d39cde2b2c430b6cf8be55ff"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#170a1ef14beb3cbe449aaec8ebdb3a12">_pollInput</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Polls all input. <a href="#170a1ef14beb3cbe449aaec8ebdb3a12"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#b61655678d3eeaed794f97653f28ab25">isKeyQueueEmpty</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the key queue is empty or not. <a href="#b61655678d3eeaed794f97653f28ab25"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classgcn_1_1KeyInput.html">KeyInput</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#88b857072d6efa13af97fec6ac38f6e2">dequeueKeyInput</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Dequeues the key input queue. <a href="#88b857072d6efa13af97fec6ac38f6e2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#8e44d9f0fa6d9116da58ea332fdfbb30">isMouseQueueEmpty</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the mouse queue is empyt or not. <a href="#8e44d9f0fa6d9116da58ea332fdfbb30"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classgcn_1_1MouseInput.html">MouseInput</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#aaff545069b650af6bb93e09ba05cbee">dequeueMouseInput</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Dequeues the mouse input queue. <a href="#aaff545069b650af6bb93e09ba05cbee"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classgcn_1_1Key.html">Key</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#e7191c8aa3bad468494a4c3af205a91f">convertKeyCharacter</a> (unsigned char key)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a GLUT key to a <a class="el" href="classgcn_1_1Key.html">Key</a> object. <a href="#e7191c8aa3bad468494a4c3af205a91f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classgcn_1_1Key.html">Key</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#7f7bbca307ef0ce1883ef4caed27f62b">convertSpecialCharacter</a> (unsigned char key)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a special GLUT key to a <a class="el" href="classgcn_1_1Key.html">Key</a> object. <a href="#7f7bbca307ef0ce1883ef4caed27f62b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#30510614b04a197a86eaaaba526f2ca2">convertMouseButton</a> (int button)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a mouse button from GLUT to a Guichan mouse button representation. <a href="#30510614b04a197a86eaaaba526f2ca2"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3887ea38757d3314251cf1c3f022ba4a"></a><!-- doxytag: member="gcn::GLUTInput::mKeyInputQueue" ref="3887ea38757d3314251cf1c3f022ba4a" args="" --> std::queue< <a class="el" href="classgcn_1_1KeyInput.html">KeyInput</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#3887ea38757d3314251cf1c3f022ba4a">mKeyInputQueue</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15779dee3b663bc083c652c9c09033ea"></a><!-- doxytag: member="gcn::GLUTInput::mMouseInputQueue" ref="15779dee3b663bc083c652c9c09033ea" args="" --> std::queue< <a class="el" href="classgcn_1_1MouseInput.html">MouseInput</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1GLUTInput.html#15779dee3b663bc083c652c9c09033ea">mMouseInputQueue</a></td></tr> </table> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="170a1ef14beb3cbe449aaec8ebdb3a12"></a><!-- doxytag: member="gcn::GLUTInput::_pollInput" ref="170a1ef14beb3cbe449aaec8ebdb3a12" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void gcn::GLUTInput::_pollInput </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Polls all input. <p> It exists for input driver compatibility. If you only use GLUT and plan sticking with GLUT you can safely ignore this function as it in the GLUT case does nothing. <p> Implements <a class="el" href="classgcn_1_1Input.html#8e852901ad206985f18ae25e99867cb6">gcn::Input</a>. <p> Definition at line <a class="el" href="glutinput_8hpp-source.html#l00150">150</a> of file <a class="el" href="glutinput_8hpp-source.html">glutinput.hpp</a>. </div> </div><p> <a class="anchor" name="e7191c8aa3bad468494a4c3af205a91f"></a><!-- doxytag: member="gcn::GLUTInput::convertKeyCharacter" ref="e7191c8aa3bad468494a4c3af205a91f" args="(unsigned char key)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgcn_1_1Key.html">Key</a> gcn::GLUTInput::convertKeyCharacter </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"> <em>key</em> </td> <td> ) </td> <td width="100%"><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Converts a GLUT key to a <a class="el" href="classgcn_1_1Key.html">Key</a> object. <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>key</em> </td><td>a GLUT key. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classgcn_1_1Key.html">Key</a> object. </dd></dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00178">178</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="key_8cpp-source.html#l00118">gcn::Key::setAltPressed()</a>, <a class="el" href="key_8cpp-source.html#l00108">gcn::Key::setControlPressed()</a>, <a class="el" href="key_8cpp-source.html#l00098">gcn::Key::setShiftPressed()</a>, and <a class="el" href="key_8cpp-source.html#l00143">gcn::Key::setValue()</a>. <p> Referenced by <a class="el" href="glutinput_8cpp-source.html#l00111">pushKeyDownInput()</a>, and <a class="el" href="glutinput_8cpp-source.html#l00119">pushKeyUpInput()</a>. </div> </div><p> <a class="anchor" name="30510614b04a197a86eaaaba526f2ca2"></a><!-- doxytag: member="gcn::GLUTInput::convertMouseButton" ref="30510614b04a197a86eaaaba526f2ca2" args="(int button)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int gcn::GLUTInput::convertMouseButton </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>button</em> </td> <td> ) </td> <td width="100%"><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Converts a mouse button from GLUT to a Guichan mouse button representation. <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> </td><td>a GLUT mouse button. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>a Guichan mouse button. </dd></dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00297">297</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> Referenced by <a class="el" href="glutinput_8cpp-source.html#l00144">pushMouseInput()</a>. </div> </div><p> <a class="anchor" name="7f7bbca307ef0ce1883ef4caed27f62b"></a><!-- doxytag: member="gcn::GLUTInput::convertSpecialCharacter" ref="7f7bbca307ef0ce1883ef4caed27f62b" args="(unsigned char key)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgcn_1_1Key.html">Key</a> gcn::GLUTInput::convertSpecialCharacter </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"> <em>key</em> </td> <td> ) </td> <td width="100%"><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Converts a special GLUT key to a <a class="el" href="classgcn_1_1Key.html">Key</a> object. <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>key</em> </td><td>a GLUT key. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classgcn_1_1Key.html">Key</a> object. </dd></dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00211">211</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="key_8cpp-source.html#l00118">gcn::Key::setAltPressed()</a>, <a class="el" href="key_8cpp-source.html#l00108">gcn::Key::setControlPressed()</a>, <a class="el" href="key_8cpp-source.html#l00098">gcn::Key::setShiftPressed()</a>, and <a class="el" href="key_8cpp-source.html#l00143">gcn::Key::setValue()</a>. <p> Referenced by <a class="el" href="glutinput_8cpp-source.html#l00127">pushSpecialDownInput()</a>, and <a class="el" href="glutinput_8cpp-source.html#l00136">pushSpecialUpInput()</a>. </div> </div><p> <a class="anchor" name="88b857072d6efa13af97fec6ac38f6e2"></a><!-- doxytag: member="gcn::GLUTInput::dequeueKeyInput" ref="88b857072d6efa13af97fec6ac38f6e2" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgcn_1_1KeyInput.html">KeyInput</a> gcn::GLUTInput::dequeueKeyInput </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Dequeues the key input queue. <p> <dl compact><dt><b>Returns:</b></dt><dd>key input. </dd></dl> <p> Implements <a class="el" href="classgcn_1_1Input.html#3c4c2e5a0328dff6f90d81fb22e30d6c">gcn::Input</a>. <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00076">76</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8hpp-source.html#l00189">mKeyInputQueue</a>. </div> </div><p> <a class="anchor" name="aaff545069b650af6bb93e09ba05cbee"></a><!-- doxytag: member="gcn::GLUTInput::dequeueMouseInput" ref="aaff545069b650af6bb93e09ba05cbee" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgcn_1_1MouseInput.html">MouseInput</a> gcn::GLUTInput::dequeueMouseInput </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Dequeues the mouse input queue. <p> <dl compact><dt><b>Returns:</b></dt><dd>mouse input. </dd></dl> <p> Implements <a class="el" href="classgcn_1_1Input.html#974c5ffa91c1f80185f32ac10a5de3e2">gcn::Input</a>. <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00096">96</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8hpp-source.html#l00190">mMouseInputQueue</a>. </div> </div><p> <a class="anchor" name="b61655678d3eeaed794f97653f28ab25"></a><!-- doxytag: member="gcn::GLUTInput::isKeyQueueEmpty" ref="b61655678d3eeaed794f97653f28ab25" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gcn::GLUTInput::isKeyQueueEmpty </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Checks whether the key queue is empty or not. <p> <dl compact><dt><b>Returns:</b></dt><dd>true if the key queue is empty. </dd></dl> <p> Implements <a class="el" href="classgcn_1_1Input.html#99c69c2e8d9b4378c4cea1f8beed0cf3">gcn::Input</a>. <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00071">71</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8hpp-source.html#l00189">mKeyInputQueue</a>. </div> </div><p> <a class="anchor" name="8e44d9f0fa6d9116da58ea332fdfbb30"></a><!-- doxytag: member="gcn::GLUTInput::isMouseQueueEmpty" ref="8e44d9f0fa6d9116da58ea332fdfbb30" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gcn::GLUTInput::isMouseQueueEmpty </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Checks whether the mouse queue is empyt or not. <p> <dl compact><dt><b>Returns:</b></dt><dd>true if the mouse queue is empty. </dd></dl> <p> Implements <a class="el" href="classgcn_1_1Input.html#9c59ac0d0ae6c2eb4967f3eb6d9e059f">gcn::Input</a>. <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00091">91</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8hpp-source.html#l00190">mMouseInputQueue</a>. </div> </div><p> <a class="anchor" name="3e80e075e1fb9cf200b1d7a3f2a647d1"></a><!-- doxytag: member="gcn::GLUTInput::pushKeyDownInput" ref="3e80e075e1fb9cf200b1d7a3f2a647d1" args="(unsigned char key)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcn::GLUTInput::pushKeyDownInput </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"> <em>key</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pushes a key down. <p> It should be called in the glutKeyboardFunc call back function.<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>key</em> </td><td>a key from GLUT. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00111">111</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8cpp-source.html#l00178">convertKeyCharacter()</a>, <a class="el" href="glutinput_8hpp-source.html#l00189">mKeyInputQueue</a>, <a class="el" href="keyinput_8cpp-source.html#l00081">gcn::KeyInput::setKey()</a>, and <a class="el" href="keyinput_8cpp-source.html#l00071">gcn::KeyInput::setType()</a>. </div> </div><p> <a class="anchor" name="538e9c6a6eabd7066e091198ba6c15cb"></a><!-- doxytag: member="gcn::GLUTInput::pushKeyUpInput" ref="538e9c6a6eabd7066e091198ba6c15cb" args="(unsigned char key)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcn::GLUTInput::pushKeyUpInput </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"> <em>key</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pushes a key up. <p> It should be called in the glutKeyboardUpFunc call back function.<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>key</em> </td><td>a key from GLUT. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00119">119</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8cpp-source.html#l00178">convertKeyCharacter()</a>, <a class="el" href="glutinput_8hpp-source.html#l00189">mKeyInputQueue</a>, <a class="el" href="keyinput_8cpp-source.html#l00081">gcn::KeyInput::setKey()</a>, and <a class="el" href="keyinput_8cpp-source.html#l00071">gcn::KeyInput::setType()</a>. </div> </div><p> <a class="anchor" name="662ccabea1d852f3d2640c0680f81831"></a><!-- doxytag: member="gcn::GLUTInput::pushMotionInput" ref="662ccabea1d852f3d2640c0680f81831" args="(int x, int y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcn::GLUTInput::pushMotionInput </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pushes a mouse motion input. <p> It should be called in the glutMotionFunc call back function.<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>x</em> </td><td>an x coordinate from GLUT. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>an y coordinate from GLUT. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00163">163</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8hpp-source.html#l00190">mMouseInputQueue</a>, <a class="el" href="mouseinput_8cpp-source.html#l00084">gcn::MouseInput::setButton()</a>, <a class="el" href="mouseinput_8cpp-source.html#l00074">gcn::MouseInput::setType()</a>, <a class="el" href="mouseinput_8hpp-source.html#l00147">gcn::MouseInput::x</a>, and <a class="el" href="mouseinput_8hpp-source.html#l00147">gcn::MouseInput::y</a>. <p> Referenced by <a class="el" href="glutinput_8cpp-source.html#l00173">pushPassiveMotionInput()</a>. </div> </div><p> <a class="anchor" name="0756970ee4d37b6328b0a24d947fb951"></a><!-- doxytag: member="gcn::GLUTInput::pushMouseInput" ref="0756970ee4d37b6328b0a24d947fb951" args="(int button, int state, int x, int y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcn::GLUTInput::pushMouseInput </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>button</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>state</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pushes a mouse input. <p> It should be called in the glutMouseFunc call back function.<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> </td><td>a button from GLUT. </td></tr> <tr><td valign="top"></td><td valign="top"><em>state</em> </td><td>a mouse state from GLUT. </td></tr> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>an x coordinate from GLUT. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>an y coordinate from GLUT. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00144">144</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8cpp-source.html#l00297">convertMouseButton()</a>, <a class="el" href="glutinput_8hpp-source.html#l00190">mMouseInputQueue</a>, <a class="el" href="mouseinput_8cpp-source.html#l00084">gcn::MouseInput::setButton()</a>, <a class="el" href="mouseinput_8cpp-source.html#l00074">gcn::MouseInput::setType()</a>, <a class="el" href="mouseinput_8hpp-source.html#l00147">gcn::MouseInput::x</a>, and <a class="el" href="mouseinput_8hpp-source.html#l00147">gcn::MouseInput::y</a>. </div> </div><p> <a class="anchor" name="6cc52127d39cde2b2c430b6cf8be55ff"></a><!-- doxytag: member="gcn::GLUTInput::pushPassiveMotionInput" ref="6cc52127d39cde2b2c430b6cf8be55ff" args="(int x, int y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcn::GLUTInput::pushPassiveMotionInput </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pushes a passive mouse motion input. <p> It should be called in the glutPassiveMotionFunc call back function.<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>x</em> </td><td>an x coordinate from GLUT. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>an y coordinate from GLUT. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00173">173</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8cpp-source.html#l00163">pushMotionInput()</a>. </div> </div><p> <a class="anchor" name="3e0e98618769b73200a7f4cfeda4004d"></a><!-- doxytag: member="gcn::GLUTInput::pushSpecialDownInput" ref="3e0e98618769b73200a7f4cfeda4004d" args="(unsigned char key)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcn::GLUTInput::pushSpecialDownInput </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"> <em>key</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pushes a special key down. <p> It should be called in the glutSpecialFunc call back function.<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>key</em> </td><td>a key from GLUT. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00127">127</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8cpp-source.html#l00211">convertSpecialCharacter()</a>, <a class="el" href="glutinput_8hpp-source.html#l00189">mKeyInputQueue</a>, <a class="el" href="keyinput_8cpp-source.html#l00081">gcn::KeyInput::setKey()</a>, and <a class="el" href="keyinput_8cpp-source.html#l00071">gcn::KeyInput::setType()</a>. </div> </div><p> <a class="anchor" name="6c3799f09dba23d7d56f9a124a758604"></a><!-- doxytag: member="gcn::GLUTInput::pushSpecialUpInput" ref="6c3799f09dba23d7d56f9a124a758604" args="(unsigned char key)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcn::GLUTInput::pushSpecialUpInput </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"> <em>key</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pushes a special key up. <p> It should be called in the glutSpecialUpFunc call back function.<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>key</em> </td><td>a key from GLUT. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="glutinput_8cpp-source.html#l00136">136</a> of file <a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a>. <p> References <a class="el" href="glutinput_8cpp-source.html#l00211">convertSpecialCharacter()</a>, <a class="el" href="glutinput_8hpp-source.html#l00189">mKeyInputQueue</a>, <a class="el" href="keyinput_8cpp-source.html#l00081">gcn::KeyInput::setKey()</a>, and <a class="el" href="keyinput_8cpp-source.html#l00071">gcn::KeyInput::setType()</a>. </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="glutinput_8hpp-source.html">glutinput.hpp</a><li><a class="el" href="glutinput_8cpp-source.html">glutinput.cpp</a></ul> <hr size="1"><address style="align: right;"><small>Generated on Sat Jul 29 19:38:48 2006 for Guichan by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address> </body> </html>