<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_Mouse - 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_Mouse</h1> <p> Class for handling mouse 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 <ClanLib/display.h> <p> <table border=0 width=100%> </table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Mouse__get_device_count.html">get_device_count</a></p></td><td valign=top><p> Returns the number of mice available.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__get_device.html">get_device</a></p></td><td valign=top><p> Returns a mouse device.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__get_x.html">get_x</a></p></td><td valign=top><p> Returns the x position of a mouse device.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__get_y.html">get_y</a></p></td><td valign=top><p> Returns the y position of a mouse device.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__get_keycode.html">get_keycode</a></p></td><td valign=top><p> Returns true if the key with the specified key code is pressed.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__get_key_name.html">get_key_name</a></p></td><td valign=top><p> Key name for specified identifier (Mouse Left, Mouse Right).</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Mouse__set_position.html">set_position</a></p></td><td valign=top><p> Sets the position of a mouse device.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__set_cursor.html">set_cursor</a></p></td><td valign=top><p> Set a custom mouse cursor.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__show.html">show</a></p></td><td valign=top><p> Shows the mouse cursor. </p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__hide.html">hide</a></p></td><td valign=top><p> Hides the mouse cursor.</p></td></tr></table> <p><b>Signals:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Mouse__sig_key_down.html">sig_key_down</a></p></td><td valign=top><p> Signal emitted when mouse is pressed on the specified mouse.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__sig_key_up.html">sig_key_up</a></p></td><td valign=top><p> Signal emitted when mouse is released on the specified mouse.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__sig_key_dblclk.html">sig_key_dblclk</a></p></td><td valign=top><p> Signal emitted when mouse is double-clicked on the specified mouse.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mouse__sig_move.html">sig_move</a></p></td><td valign=top><p> Signal emitted when specified mouse is moved.</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 -->