<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[VirtualKeyCode]]></title><description><![CDATA[<p>Hallo Leute!</p>
<p>Kann mir bitte wer folgende Codezeile erklären:</p>
<pre><code class="language-cpp">#define KEYDOWN( name, key ) ( name[key] &amp; 0x80 )
</code></pre>
<p>Das was ich hier nicht verstehe, ist der Teil mit 'name[key] &amp; 0x80' - was bedeutet 0x80 in diesem Zusammenhang?</p>
<p>Es handelt sich hier um eine Macrodefinition damit man keyboard-input lesen kann.</p>
<p>lg breckal</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/305752/virtualkeycode</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 14:28:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/305752.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Jul 2012 13:17:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to VirtualKeyCode on Sat, 07 Jul 2012 13:19:35 GMT]]></title><description><![CDATA[<p>Hallo Leute!</p>
<p>Kann mir bitte wer folgende Codezeile erklären:</p>
<pre><code class="language-cpp">#define KEYDOWN( name, key ) ( name[key] &amp; 0x80 )
</code></pre>
<p>Das was ich hier nicht verstehe, ist der Teil mit 'name[key] &amp; 0x80' - was bedeutet 0x80 in diesem Zusammenhang?</p>
<p>Es handelt sich hier um eine Macrodefinition damit man keyboard-input lesen kann.</p>
<p>lg breckal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2230832</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2230832</guid><dc:creator><![CDATA[breckal]]></dc:creator><pubDate>Sat, 07 Jul 2012 13:19:35 GMT</pubDate></item><item><title><![CDATA[Reply to VirtualKeyCode on Sat, 07 Jul 2012 13:26:06 GMT]]></title><description><![CDATA[<p>guck mal <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms646293(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/ms646293(v=vs.85).aspx</a> an, speziel:</p>
<pre><code>...If the most significant bit is set, the key is down, and if the least significant bit is set, the key was pressed after the previous call to GetAsyncKeyState...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2230834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2230834</guid><dc:creator><![CDATA[bentz0r0r0]]></dc:creator><pubDate>Sat, 07 Jul 2012 13:26:06 GMT</pubDate></item></channel></rss>