Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 2002

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_InputDevice - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>Class CL_InputDevice</h1>
<p>  General input device. <a href="#description">More...</a></p>
<p>Derived from:
<i>none</i>
<br>
Derived by:
<i>none</i>
<br>Group: Display (Input)</p>
<p>
#include &lt;ClanLib/display.h&gt;
<p>
<table border=0 width=100%>
</table>
<p><b>Construction:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_InputDevice__CL_InputDevice.html">CL_InputDevice</a></p></td><td valign=top><p>  Constructs an input device.</p></td></tr></table>
<p><b>Attributes:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_InputDevice__get_name.html">get_name</a></p></td><td valign=top><p>  Returns the human readable name of the device (i.e. 'Microsoft Sidewinder 3D').</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_device_name.html">get_device_name</a></p></td><td valign=top><p>  Return the hardware id/device for this device (i.e. /dev/input/js0)</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_id.html">get_id</a></p></td><td valign=top><p>  Returns the input device id.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_type.html">get_type</a></p></td><td valign=top><p>  Returns the input device type.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_key_name.html">get_key_name</a></p></td><td valign=top><p>  Friendly key name for specified identifier (A, B, Leertaste, Backspace, Mouse Left, ...).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__keyid_to_string.html">keyid_to_string</a></p></td><td valign=top><p>  Returns a generic string name for the specified key code. </p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__string_to_keyid.html">string_to_keyid</a></p></td><td valign=top><p>  Returns the key code for the specified generic string key name.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_keycode.html">get_keycode</a></p></td><td valign=top><p>  Returns true if the passed key code is down for this device.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_x.html">get_x</a></p></td><td valign=top><p>  Returns the x position of the device.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_y.html">get_y</a></p></td><td valign=top><p>  Returns the y position of the device.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_axis.html">get_axis</a></p></td><td valign=top><p>  Returns the the current position of a joystick axis.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_axis_count.html">get_axis_count</a></p></td><td valign=top><p>  Returns the number of axes available on this device.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__get_button_count.html">get_button_count</a></p></td><td valign=top><p>  Returns the number of buttons available on this device.</p></td></tr></table>
<p><b>Operations:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_InputDevice__operator =.html">operator =</a></p></td><td valign=top><p></p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__set_position.html">set_position</a></p></td><td valign=top><p>  Sets the position of the device.</p></td></tr></table>
<p><b>Signals:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_InputDevice__sig_key_down.html">sig_key_down</a></p></td><td valign=top><p>  Signal emitted when key is pressed.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__sig_key_up.html">sig_key_up</a></p></td><td valign=top><p>  Signal emitted when key is released.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__sig_key_dblclk.html">sig_key_dblclk</a></p></td><td valign=top><p>  Signal emitted when the mouse is double-clicked.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__sig_pointer_move.html">sig_pointer_move</a></p></td><td valign=top><p>  Signal emitted when pointer is moved (absolute movement).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__sig_ball_move.html">sig_ball_move</a></p></td><td valign=top><p>  Signal emitted when pointer's ball is moved (relative movement).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__sig_axis_move.html">sig_axis_move</a></p></td><td valign=top><p>  Signal emitted when axis is moved.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputDevice__sig_move.html">sig_move</a></p></td><td valign=top><p>  Deprecated. Use sig_pointer_move() instead.</p></td></tr></table>
<p><b>Implementation:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_InputDevice__impl.html">impl</a></p></td><td valign=top><p></p></td></tr></table>
<a name="#description"><p><b>Detailed description:</b></p>
  !group=Display/Input!
  !header=display.h!


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->