⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__key__status.htm

📁 MINIGUI1.6开发API
💻 HTM
字号:
<!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>MiniGUI V1.6.10 API Reference: Asynchronous key status functions</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>Asynchronous key status functions<br><small>[<a class="el" href="group__lite__fns.htm">MiniGUI-Processes specific functions</a>]</small></h1><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__key__status.htm#ga0">GetKeyStatus</a> (<a class="el" href="group__win32__types.htm#ga6">UINT</a> uKey)<dl class="el"><dd class="mdescRight">Gets a key or a mouse button status.  <a href="#ga0"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__key__status.htm#ga1">GetShiftKeyStatus</a> (void)<dl class="el"><dd class="mdescRight">Gets status of the shift keys.  <a href="#ga1"></a><br></dl></ul><hr><h2>Function Documentation</h2><a class="anchor" name="ga0" doxytag="minigui.h::GetKeyStatus"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI GetKeyStatus           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__win32__types.htm#ga6">UINT</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>uKey</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets a key or a mouse button status. <p>This function gets a key or a mouse button status, returns TRUE when pressed, or FALSE when released. <em>uKey</em> indicates the key or mouse button. For keys on keyboard, <em>uKey</em> should be the scancode of the key, for mouse button, <em>uKey</em> should be one value of the following:<p><ul><li>SCANCODE_LEFTBUTTON<br> Left mouse button.</li><li>SCANCODE_MIDDLBUTTON<br> Middle mouse button.</li><li>SCANCODE_RIGHTBUTTON<br> Right mouse button.</li></ul><p>These constants and the scancodes of keys are defined in &lt;minigui/common.h&gt;.<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>uKey</em>&nbsp;</td><td>Indicates the key or mouse button.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns TRUE when pressed, or FALSE when released.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__status.htm#ga1">GetShiftKeyStatus</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga1" doxytag="minigui.h::GetShiftKeyStatus"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI GetShiftKeyStatus           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets status of the shift keys. <p>This function gets ths status of the shift keys, the returned value indicates the status of shift keys -- CapsLock, ScrollLock, NumLock, Left Shift, Right Shift, Left Ctrl, Right Ctrl, Left Alt, and Right Alt. You can use KS_* ORed with the status value to determine one shift key's status:<p><ul><li>KS_CAPSLOCK<br> Indicates that CapsLock is locked.</li><li>KS_NUMLOCK<br> Indicates that NumLock is locked.</li><li>KS_SCROLLLOCK<br> Indicates that ScrollLock is locked.</li><li>KS_LEFTCTRL<br> Indicates that left Ctrl key is pressed.</li><li>KS_RIGHTCTRL<br> Indicates that right Ctrl key is pressed.</li><li>KS_CTRL<br> Indicates that either left or right Ctrl key is pressed.</li><li>KS_LEFTALT<br> Indicates that left Alt key is pressed.</li><li>KS_RIGHTALT<br> Indicates that right Alt key is pressed.</li><li>KS_ALT<br> Indicates that either left or right Alt key is pressed.</li><li>KS_LEFTSHIFT<br> Indicates that left Shift key is pressed.</li><li>KS_RIGHTSHIFT<br> Indicates that right Shift key is pressed.</li><li>KS_SHIFT<br> Indicates that either left or right Shift key is pressed.</li></ul><p>These constants are defined in &lt;minigui/common.h&gt;.<p><dl compact><dt><b>Returns:</b></dt><dd>The status of the shift keys. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__defs.htm">Macros for key codes and shift status</a> </dd></dl>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:55 2007 for MiniGUI V1.6.10 API Reference by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -