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

📄 group__key__defs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
Definition at line <a class="el" href="common_8h-source.htm#l01060">1060</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga125" doxytag="common.h::KS_REPEATED"></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">#define KS_REPEATED&nbsp;&nbsp;&nbsp;0x00000800          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>This status indicate that the key down message is an auto-repeated one. <p>You can test the status by AND'ed with lParam of the message, like below:<p><div class="fragment"><pre class="fragment">      <span class="keywordflow">switch</span> (message) {      <span class="keywordflow">case</span> <a class="code" href="group__key__msgs.htm#ga4">MSG_KEYDOWN</a>:          <span class="keywordflow">if</span> (lParam &amp; <a class="code" href="group__key__defs.htm#ga125">KS_REPEATED</a>) {              <span class="comment">// the key down messsage is auto-repeated.</span>              ...          }          <span class="keywordflow">break</span>;      ...</pre></div><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm">Key event messages</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00999">999</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga135" doxytag="common.h::KS_RIGHTALT"></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">#define KS_RIGHTALT&nbsp;&nbsp;&nbsp;0x00000004          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>This status indicate that right-Alt key was pressed when the key or mouse message posted to the window. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm">Key event messages</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l01114">1114</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga142" doxytag="common.h::KS_RIGHTBUTTON"></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">#define KS_RIGHTBUTTON&nbsp;&nbsp;&nbsp;0x00002000          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>This status indicate that right button was pressed when the key or mouse message posted to the window. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm">Key event messages</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l01174">1174</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga132" doxytag="common.h::KS_RIGHTCTRL"></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">#define KS_RIGHTCTRL&nbsp;&nbsp;&nbsp;0x00000010          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>This status indicate that the right-Ctrl key was pressed when the key or mouse message posted to the window. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm">Key event messages</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l01087">1087</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga138" doxytag="common.h::KS_RIGHTSHIFT"></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">#define KS_RIGHTSHIFT&nbsp;&nbsp;&nbsp;0x00000001          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>This status indicate that right-Shift key was pressed when the key or mouse message posted to the window. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm">Key event messages</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l01141">1141</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga130" doxytag="common.h::KS_SCROLLLOCK"></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">#define KS_SCROLLLOCK&nbsp;&nbsp;&nbsp;0x00000040          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>This status indicate that the ScrollLock key was locked when the key or mouse message posted to the window. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm">Key event messages</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l01069">1069</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga139" doxytag="common.h::KS_SHIFT"></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">#define KS_SHIFT&nbsp;&nbsp;&nbsp;0x00000003          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>This status indicate that either the left-Shift key or the right-Shift key was pressed when the key or mouse message posted to the window. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__msgs.htm">Key event messages</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l01150">1150</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga144" doxytag="common.h::MASK_KS_BUTTONS"></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">#define MASK_KS_BUTTONS&nbsp;&nbsp;&nbsp;0x0000F000          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The mask of mouse button status. <p><p>Definition at line <a class="el" href="common_8h-source.htm#l01189">1189</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga140" doxytag="common.h::MASK_KS_SHIFTKEYS"></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">#define MASK_KS_SHIFTKEYS&nbsp;&nbsp;&nbsp;0x00000FFF          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The mask of key status. <p><p>Definition at line <a class="el" href="common_8h-source.htm#l01156">1156</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga0" doxytag="common.h::MGUI_NR_KEYS"></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">#define MGUI_NR_KEYS&nbsp;&nbsp;&nbsp;255          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Number of MiniGUI keys. <p>The number of MiniGUI keys is defined to 255 by default. This means that MiniGUI can destinguish 255 different keys with each has an unique scan code. The scan codes below 129 are defined for PC keyboard by default. If your system has a large amount of keys, you can define the scan code of keys ranged from 1 to 255 in your IAL engine. And your application will receive a MSG_KEYDOWN and MSG_KEYUP messages when a key pressed and released, and the wParam of the messages will be defined to be equal to the scan code of the key.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__defs.htm#ga1">NR_KEYS</a>, <a class="el" href="group__key__defs.htm#ga2">SCANCODE_USER</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00798">798</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga1" doxytag="common.h::NR_KEYS"></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">#define NR_KEYS&nbsp;&nbsp;&nbsp;128          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The number of keys defined by Linux operating system. <p>For a PC box, NR_KEYS is defined to 128 by default. You can define some input events from an input device other than keyboard, e.g. your remote controller, as key events with different scan codes from those of PC's. MiniGUI can support 255 keys, and the constant is defined by MGUI_NR_KEYS.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__defs.htm#ga0">MGUI_NR_KEYS</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00813">813</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga2" doxytag="common.h::SCANCODE_USER"></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">#define SCANCODE_USER&nbsp;&nbsp;&nbsp;(NR_KEYS + 1)          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The first key scan code different from OS defined ones. <p>You can define your special key scan codes like below<p><div class="fragment"><pre class="fragment"><span class="preprocessor"> #define SCANCODE_PLAY    (SCANCODE_USER)</span><span class="preprocessor"></span><span class="preprocessor"> #define SCANCODE_STOP    (SCANCODE_USER + 1)</span><span class="preprocessor"> #define SCANCODE_PAUSE   (SCANCODE_USER + 2)</span></pre></div><p>to distinguish the keys on your remote controller.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__key__defs.htm#ga0">MGUI_NR_KEYS</a>, <a class="el" href="group__key__defs.htm#ga1">NR_KEYS</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00832">832</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:53 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 + -